The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Week 6 Assignment:Â Variables, IF/THEN/ELSE, LoopsÂ
Instructions:
You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site:Â https://www.python.org/downloads/.
You will code the following and submit it in one file. Use the information in the Lessons area for this week to assist you. Save it as a python file (.py), and upload it into the Assignments area for the Week 4 Assignment.
1.   Create a comment block with the following information:
Your Name
Course Name, Section (example: ENTD200 B002 Spr15)
Instructor name
Week #Â
Date completed
2.   Problem 1: Write a program that will calculate the problem and stop after the condition has been met.Â
Â
a=number of loops (start with zero but will increase by 1 after each completed loop)
b=a+1
c=a+b
Â
Condition: If c is less than 5, then the loop will continue; else, it will end.
3.   Print a string variable that states the number of loops required to meet the condition for Problem 1.
-----------