Tag Archives: #Quiz08

Quiz8

https://github.com/Xochitl96/WSQ/blob/master/q1.cpp

https://github.com/Xochitl96/WSQ/blob/master/q2.cpp

teacher pleaseee! I had a problem with Git Hub and could not upload my code , please could check my quiz .

 

Learn To Program 2015-03-24 23:55:00

QUIZ08

  • In a file called q1.py, write a function called triangles which receives a single parameter (int) which represents the size of a triangle as explained below. The function should PRINT a triangle using loops (for or while). The only characters printed here are ‘T’ and the new-line character. The first line is length one, the middle line is length size and the last line is length one. The example below is for size 6.

T
TT
TTT
TTTT
TTTTT
TTTTTT
TTTTT
TTTT
TTT
TT
T

Here is my program and running:
https://github.com/A01630323/Learn-To-Program/blob/master/q1.py

  • In a file called q2.py, create a function called find_threes that receives as a parameter a list of
    numbers and returns the sum of all numbers in that list that are evenly divisible by 3.
    So if the list was [0,4,2,6,9,8,3,12], the function would return 30 (0+6+9+3+12

Here es my program and running:
https://github.com/A01630323/Learn-To-Program/blob/master/q2.py

Learn To Program 2015-03-24 23:55:00

QUIZ08

  • In a file called q1.py, write a function called triangles which receives a single parameter (int) which represents the size of a triangle as explained below. The function should PRINT a triangle using loops (for or while). The only characters printed here are ‘T’ and the new-line character. The first line is length one, the middle line is length size and the last line is length one. The example below is for size 6.

T
TT
TTT
TTTT
TTTTT
TTTTTT
TTTTT
TTTT
TTT
TT
T

Here is my program and running:
https://github.com/A01630323/Learn-To-Program/blob/master/q1.py

  • In a file called q2.py, create a function called find_threes that receives as a parameter a list of
    numbers and returns the sum of all numbers in that list that are evenly divisible by 3.
    So if the list was [0,4,2,6,9,8,3,12], the function would return 30 (0+6+9+3+12

Here es my program and running:
https://github.com/A01630323/Learn-To-Program/blob/master/q2.py

#Quiz08 #q1 #q2

https://github.com/gerahuerta/Quiz08

Aqui estan mis dos ejercicios del quiz