Question: program in C NOT C++ or others, please 4.19 (Calculating Sale) An online senile nella fine different pendana whose remail prices are shown in the
4.19 (Calculating Sale) An online senile nella fine different pendana whose remail prices are shown in the following stable Product number Retail price 520 54.50 59.95 $4,49 560 Write a program that read a series of pain of numbers follows: Product number b) Quantity sold for one day Your program should we sritcharement whelp determine the retail price for each product. Your propeam should calculate and display the real tictail value of all products wild le week 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: S 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 : 4 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. to end-1 Product Qty Sales Product 1: 5 14.90 Procact 2: 7 31.50 Product 3: 9 89.82 Product 4: 11 49.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
Get step-by-step solutions from verified subject matter experts
