Question: 4) An online retailer sells five different product whose retail prices are product number ( Retail price) 1 ($ 2.98) 2 ($ 4.50) 3 ($
4) An online retailer sells five different product whose retail prices are
product number ( Retail price)
1 ($ 2.98)
2 ($ 4.50)
3 ($ 9.98)
4 ($ 4.49)
5 ($ 6.87)
Write a program should that reads a series of pairs of numbers as follows:
1- Product number
2- Quantity sold for one day
the program should use (switch) statement to help determine the retail price for each product.
the program should calculate and display the total retail value of all product sold last week.
5) Write a program that prints the following diamond shape.
may use (printf) statement that print either a single asterisk ( * ) or a single blank. Maximize your use of iteration ( with nested for statements) and minimize the number of (printf) statements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
