Question: Lab 5 (100 Points) 1. (Upload as Source File) Lemonade Stand Simulator (60 Points Write a program to simulate the operations of a Lemonade Stand.

 Lab 5 (100 Points) 1. (Upload as Source File) Lemonade Stand

Lab 5 (100 Points) 1. (Upload as Source File) Lemonade Stand Simulator (60 Points Write a program to simulate the operations of a Lemonade Stand. Your program shall track the account. While water is a vital component of making lemonade, it will be considered free since it is supplied by the parents L. On start up the program shall assume the inventory of the store is initialized to the following ITEM LEMONS SUGAR MONEY BEVERAGES SOLD 0 INITIAL AMOUNT COST So.50 2.62 per 5 Pound Bag N/A +$2.50 $10.00 IL. Your program shall prompt the user to choose an action. The menu shall look like the one shown below Purchase lenns Purchase Sugar e lection3 a. If the action purchase lemons is selected, the program shall prompt the user to enter the number of lemons they wish to purchase. Lemons must be purchased whole, Le. half a lemon cannot be purchased L Upon the user entering the number of lemons, update the number of lemons in y, decrease the funds in the account based on the quantity and price ($0.50) of the lemons purchased b. If the action purchase sugar is selected, the program shall prompt the user to enter the number of bags of sugar they wish to purchase. Again, bags must be purchased whole L Upon the user entering the number of bags of sugar, update the number of pounds of sugar in the inventory, decrease the funds in the account based on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!