Question: Write a complete C++ program that helps the cashier to calculate the price of the rent movies. The program should perform the following tasks: Task

 Write a complete C++ program that helps the cashier to calculate

Write a complete C++ program that helps the cashier to calculate the price of the rent movies. The program should perform the following tasks: Task 1: Write a function named calcAverage a) It takes the total number of each rented movie type as input parameters. b) The function should calculate the average number of movies rented per movie type. c) It should return the average value calculated in (b). Task 2: Write a function named calcPrice. a) It takes the total rate as an input parameter. b) The function should calculate the final price based on the discount based on the conditions in Table 1. Table 1 Rate Range Below RM 35.00 Between RM 35.00 to RM 60.00 Above RM 60.00 Discount(%) 10 15 25 c) It should return the final price calculated in (b). Task 3: Write a function named getInput. a) This is a non-returning function. b) It takes the number of movies to rent for each movie type (movie type 1, movie type 2, and movie type 3) as input parameters. c) The function should ask the user to enter the number of movies to rent for each movie type. d) It sends all the values entered by the user in (e) back to the calling module through the use of reference parameters

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!