Calculating sales an online retailer sells five different


Question: (Calculating Sales) An online retailer sells five different products whose retail prices are shown in the following table:

Product number     Retail Price

1                         $ 2.98

2                         $ 4.50

3                         $ 9.98

4                         $ 4.49

5                         $ 6.87

Write a program that reads a series of pairs of numbers as follows:

a) Product number

b) Quantity sold for one day

Your program should use a switch statement to help determine the retail price for each product. Your program should calculate and display the total retail value of all products sold last week.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Calculating sales an online retailer sells five different
Reference No:- TGS02403801

Now Priced at $15 (50% Discount)

Recommended (99%)

Rated (4.3/5)