Week 6 Assignment - Variables, If - THEN - ELSE, Loops
Week 6 Assignment - Variables, If - THEN - ELSE, Loops
TheAceStudent:Week6Assignment:Variables,IF/THEN/ELSE,Loops
Week6Assignment:Variables,IF/THEN/ELSE,Loops
Week6Assignment:Variables,IF/THEN/ELSE,Loops
Week6Assignment:Variables,IF/THEN/ELSE,Loops
Instructions:
YouwillcompletethisassignmentinPython3.x.Makesureyouhavedownloadedthesoftwareand
itisinstalledcorrectly.Youwilldownloaditfromthissite:https://www.python.org/downloads/.
Youwillcodethefollowingandsubmititinonefile.UsetheinformationintheLessonsareaforthis
weektoassistyou.Saveitasapythonfile(.py),anduploaditintotheAssignmentsareaforthe
Week4Assignment.
1.Createacommentblockwiththefollowinginformation:
YourName
CourseName,Section(example:ENTD200B002Spr15)
Instructorname
Week#
Datecompleted
2.Problem1:Writeaprogramthatwillcalculatetheproblemandstopaftertheconditionhas
beenmet.
a=numberofloops(startwithzero)
b=a+1
c=a+b
Condition:Ifcislessthan5,thentheloopwillcontinueelse,itwillend.
3.Printastringvariablethatstatesthenumberofloopsrequiredtomeettheconditionfor
Problem
AssignmentRubric:
RequirementsPointsAvailablePointsEarnedComments
Assignmentdetailsinacommentblock1010
PythoncommandsusedtocorrectlyprintthesolutiontoProblem1.8080
CorrectPythonstatementfor#3.1010
Total100100
Week6Assignment:Variables,IF/THEN/ELSE,Loops
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200px
1/1