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: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly