Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C program using dimensional array and basic c program concepts for a ice cream and donut shop that asks user what they want(icream and donut)

C program using dimensional array and basic c program concepts for a ice cream and donut shop

that asks user what they want(icream and donut) and how much in quanity when ice cream is sold at a base of 250 per scoop and donut sold per size. with their total cost price

The program should also show total sales per icecream and donut. , total scoops per icescream and averge size of donut sold inna day

More info in the imagine below

image text in transcribed

- Keep track of the number of ice-cream sales (You will need this information later). [1 marks] - Calculate the customers total payment due and display their bill correct to 2 places of decimal. [3 marks] - Store the total sale amount for each ice-cream sale in an array called iceCreamSales[100], and return to the menu. [2 marks] 4. If the customer chooses to buy Donuts, the donut prices go by size. A 3-inch donut sells for $150.45, a 4-inch donut sells for $175,50, and a 6 -inch monster donut sells for $350.00 For each donut sale, the program should: - Store the size of the donut sold, in an array called donutSizes[100] [2 marks] - Get the number of donuts the customer wants to buy. - Store the transaction sale amount, in an array called donutSales[100] [2 marks] - Keep track of the number of donuts sold. [1 mark ] Display the customer's bill correct to two places of decimal and retum to the menu. [2 marks] 5. At the end of the day the manager will enter the secret value of 99999 for a menu option, at which time the program is to calculate and display the following information: For Ice-cream a. The total number of Ice-creams sold for the day. [ 2 marks] b. The average ice-cream sale amount per transaction [5 marks] c. The average number of scoops sold per sale. [5 marks] d. The total Ice-cream sale amount for the day. [5 marks] For Donuts e. The average size of the donuts sold for the day. [5 marks] f. The total donut sale amount for the day. [5 marks]

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago