An online retailer sells five different products whose retail prices are shown in the following…

An online retailer sells five different products with the following retail prices: Product Number | Retail Price ---------------|------------- 1 | $x.xx 2 | $x.xx 3 | $x.xx 4 | $x.xx 5 | $x.xx Write a program that: a) Reads a series of pairs of numbers in the following format: 1. Product number 2. Quantity sold (positive value) b) Keeps asking the user for values until the user enters 0 as the product number. c) Calculates and prints out the retail value of all products sold in a day. d) Calculates and prints out the maximum sale transaction of the day, as well as the average sale transaction.

An online retailer sells five different products with the following retail prices:

Product Number | Retail Price
—————|————-
1 | $x.xx
2 | $x.xx
3 | $x.xx
4 | $x.xx
5 | $x.xx

Write a program that:
a) Reads a series of pairs of numbers in the following format:
1. Product number
2. Quantity sold (positive value)

b) Keeps asking the user for values until the user enters 0 as the product number.

c) Calculates and prints out the retail value of all products sold in a day.

d) Calculates and prints out the maximum sale transaction of the day, as well as the average sale transaction.


 
Solved By Verified
Study Co-Pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.

 
Instant
Download

Student review: (5 ratings) 5 out of 5 people found this solution helpful.