Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
Styles Lab 5 (100 Points) 1. as Source File) Lemonade Stand Simulator (60 Write a program to simulate the operations of a Lemonade Stand. Your program shall track the inventory of the lemons, sugar, and number of beverages sold as well as the amount of money in 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. TEM LEMONS SUGAR MONEY BEVERAGES SOLD 0 INITIAL AMOUNT COST $o.So $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 hase lenons Purchase Sugar I Sel1 Beverages Display Isventery election? 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, i.e. half a lemon cannot be purchased a. Upon the user entering the number of lemons, update the number of lemons in the inventory, decrease the funds in the account based on the quantity and price ($0.50) of the lemons purchased. L 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

=+What happens to aggregate demand?

Answered: 1 week ago

Question

=+a. What is nominal GDP for each of these three years?

Answered: 1 week ago