Write a program that simulates an online order system for a pizza place. Greet the user,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that simulates an online order system for a pizza place. Greet the user, then ask them what size of pizza they want. Keep asking until they enter a valid size. Then, ask them what toppings they want. They should enter only one topping per line; keep asking them for new toppings until they enter the word 'done'. Duplicate toppings are not permitted. Finally, output their receipt. Each size will have a different base cost. The first two toppings will be free, but any additional topping will be $1.25 each, except for pineapple which will be $5. Pineapple cannot be a free topping, so if it is one of the first two, then the other of the two and the third topping will be the two free ones. Write a program that simulates an online order system for a pizza place. Greet the user, then ask them what size of pizza they want. Keep asking until they enter a valid size. Then, ask them what toppings they want. They should enter only one topping per line; keep asking them for new toppings until they enter the word 'done'. Duplicate toppings are not permitted. Finally, output their receipt. Each size will have a different base cost. The first two toppings will be free, but any additional topping will be $1.25 each, except for pineapple which will be $5. Pineapple cannot be a free topping, so if it is one of the first two, then the other of the two and the third topping will be the two free ones.
Expert Answer:
Answer rating: 100% (QA)
Program Greeting the user printHi Mate Welcome to the pizza shop loop break ... View the full answer
Related Book For
Posted Date:
Students also viewed these accounting questions
-
Write a program that simulates car racing, as shown inFigure 15.34a. The car moves from left to right. When it hits the right end, it restarts from the left and continues the same process. You can...
-
Write a program that simulates four cars racing, as shown in Figure 16.47b. You can set the speed for each car, with maximum 100. 2 Car 3: 10 Car 4: Car 1: Car 2: 5 (b)
-
Write a program that simulates a stopwatch, as shown in Figure 16.45a. When the user clicks the Start button, the button?s label is changed to Pause, as shown in Figure 16.45b. When the user clicks...
-
Greenback Sporting, a retailer of outdoor wear and sporting equipment, is investigating an opportunity to purchase Active Lifestyle Inc. An acquisition is expected to lower overhead costs, improve...
-
A company uses process costing to assign product costs. Available inventory information for a period is as follows: The ending inventory was 25% complete as to the conversion cost. 100% of direct...
-
Refer to the data for the Blending Department of Sunspots Beverages, Ltd., in Problem 4-15. Assume that the company uses the FIFO method in its process costing system. Data in problem 4-15, Required:...
-
Dan Oliver worked as an accountant at a local accounting firm for five years after graduating from college. Recently, he opened his own accounting practice, which he operates as a corporation. The...
-
Following is selected information from the balance sheet for Flaps Inc. Solve for the missing amounts for each of the five years. Year 2016 2017 2018 2019 2020 Total liabilities and stockholders...
-
Let f'(x)= 2. f(x) = cos(3x+2)
-
Choose the best answer. 1. Under GASB standards, intangible assets include a. Computer software internally generated by government personnel. b. Water rights. c. Leased assets. d. All of the above....
-
A company annually uses 24,000 units of a raw material, which costs Rs 1.25 per unit. Placing each order costs Rs 22.5 and the carrying cost is 5.4 per cent of the average inventory. Find the...
-
Wainwright Corporation compiled the following limited financial information as of December 31, 2022: Service revenue $700,000 Common stock 150,000 Equipment (net) 122,000 Operating expenses 625,000...
-
For this assignment, you will conduct research on two types of business entities and prepare a brief presentation that compares and contrasts them on both tax and nontax factors, giving attention to...
-
Carbon tetrachloride is an organic compound known with thechemical formula CCl4. It is also known by many names such as tetrachloromethane by the IUPAC, carbontetrachloride in the cleaning industry,...
-
Explain why selling benefits and features is more effective than only selling features. Use an example to support your explanation relating to the hospitality industry.
-
"Draw a hydraulic circuit diagram that can be used in an industrial application, with at least 4 cylinders, related directional control valves, and/or pressure sequencing/reduction functions...
-
Q1: Describe a use that you see for this tool in the workplace - http://www.ccaiassess.com/index.html for reference and using the details below about CCAI: CAI's insights into successfully adapting...
-
On July 1, 2011, Flashlight Corporation sold equipment it had recently purchased to an unaffiliated company for $480,000. The equipment had a book value on Flashlights books of $390,000 and a...
-
The four conditions (mutual exclusion, hold and wait, no preemption and circular wait) are necessary for a resource deadlock to occur. Give an example to show that these conditions are not sufficient...
-
Some UNIX systems are tickless, meaning they do not have periodic clock interrupts. Why is this done? Also, does ticklessness make sense on a computer (such as an embedded system) running only one...
-
Name a C compiler feature that could eliminate a large number of security holes. Why is it not more widely implemented?
-
Will you accept the following as good voucher? (a) A bill of Rs. 5,000 submitted by a salesman for his travelling allowance (b) A cash memo for Rs. 500 for a perambulator of a company producing...
-
How do you vouch the following? (a) Custom duty paid on import of machinery (b) Income from house property (c) Royalty payable to a foreign collaborator (d) Traveling expenses (e) Interest and...
-
What are the differences between auditing and accountancy?
Study smarter with the SolutionInn App