Question: WRITE A C++ PROGRAM Write a program for the following problem: A Noor Bakery House sells five different pastry whose retail prices are: pastry 1

WRITE A C++ PROGRAM WRITE A C++ PROGRAM Write a program for the following problem: A

Write a program for the following problem: A Noor Bakery House sells five different pastry whose retail prices are: pastry 1 - RM2.10, pastry 2RM3.50, pastry 3-RM2.80, pastry 4- RM4.50, and pastry 5- RM6.80. Write an application that reads a series of pairs of numbers as follows: a) Product number b) Quantity sold for one day Use a switch structure to help determine the retail price for each product. The program should: i. Calculate and display the total retail value of each products sold. ii. Calculate and display the total retail value of all products sold. iii. Find the highest total retail value among the 5 products. Use a sentinel-controlled loop to determine when the program should stop looping

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!