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
Don't have to write the pseudocode or to comment the program. Just get the result the program is asking for. For the program you must use python.
Â
Name: ______________________________________________________________ Date: ____________Vending MachineBe sure to use good programming style and techniques as you will be graded from arubric. Your output must look professional.You must include a Fowchart OR thepseudo-code for your program.Remember to use all of the core items we have learnedincluding user input, funcTons, and decision and repeTTon structures.You will be designing a program that simulates a vending machine.±he machine holdssix items numbered 1 through 6.±he cost of each item is as follows:Item#Cost1$1.252$.753$.904$.755$1.506$.75±he following informaTon should be displayed to the user once an item and an amountof money has been entered:Display the following if the money entered was su²cient for the item selected:Thank you for purchasing item # 5. Your change is $ 3.50Display the following if the money entered was insu²cient:Please enter an addi±onal $.50 to purchase your item.Each customer can only purchase a maximum of three items (give the customerthe opTon to choose another item to purchase or to quit.)Before the program terminates, the following summary informaTon needs to bedisplayed:Number of items purchased:2Total cost of all items purchased:$2.75Total amount of money inserted:$5.00Total amount of change returned: $2.25
Attachments: