Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using C program 4.19 (Calimlaring Sales) An online retailer alla fine different pendama be mail prices are shown in the following tablet Product number Retail

using C program image text in transcribed
4.19 (Calimlaring Sales) An online retailer alla fine different pendama be mail prices are shown in the following tablet Product number Retail price $25 54.50 $9.99 $4,49 568 Write a program that reeds a series of pain of numbers as follows: Product number b) Quantity sold for one day Your program should we switch rement whelp determine the real price for each product. Your propeam should calculate and display the letal value of all producs old awak Entering -1 for product number should indicate you are done entering the product numbers. Sample input and output Please enter the product number between 1 and S. -1 to end :1 Please enter quantity sold: 2 Please enter the product number between 1 and 5. -1 to end 2 Please enter quantity sold: 3 Please enter the product number between 1 and 5. -1 to end 3 Please enter quantity sold: 4 Please enter the product number between 1 and 5.1 to end :4 Please enter quantity sold: 5 Please enter the product number between 1 and 5.1 to end :5 Please enter quantity sold: 6 Please enter the product number between 1 and S. -I to end :1 Please enter quantity sold: 3 Please enter the product number between 1 and 5. -1 to end 2 Please enter quantity sold: 4 Please enter the product number between 1 and 5. I to end 3 Please enter quantity sold: 5 Please enter the product number between 1 and 5 -1 to end 34 Please enter quantity sold: 6 Please enter the product number between 1 and 5.1 to end 5 Please enter quantity sold: 7 Please enter the product number between 1 and 5.1 to end Product Qty Sales Product 1: 514.90 Product 2: 7 31.50 Product 3: 9 89.82 Product 4: 1149.39 Product 5: 13 89.31 Total 274.92 Submit two runs of your program. First run should use the same sequence of input and produce the same output as the provided sample. Inputs for the second run are up to you

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

More Books

Students also viewed these Databases questions

Question

Decision-making style: Slowly or quickly? Based on what?

Answered: 1 week ago

Question

Discuss all branches of science

Answered: 1 week ago