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. (4.5 marks) 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. (9.5 marks) 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)

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!