Question: help me asap with this c++ please make it understandable and simple with screenshot please help payment will be based on package type and number

 help me asap with this c++ please make it understandable and

help me asap with this c++ please make it understandable and simple with screenshot please help

payment will be based on package type and number of days spent in the hotel. Details charge for each package are shown in the following table. Package Type Package Code Price per night (RM) Single Room S 230.00 Double Room D 250.00 Twin Room T 280.00 Figure 1: Standard Package Package Type Package Code Price per night (RM) Discount (%) Deluxe Room D 415.00 10 Mini Suite M 500.00 15 Executive Suite E 750.00 20 Figure 2: VIP Package As a programmer, you have to write a complete C++ program that will solve the following problem: a) Write a function definition standardPackage () that will receive code of package type and number of nights through its parameter. The function will calculate and return the total price charged for each stay. The charge is calculated based on the details in Figure 1. b) Write a function definition vipPackage () that will receive code of package type and number of nights through its parameter. The function will calculate and return the total price charged for each stay. The charge is calculated based on the details in Figure 2. c) Write the main function that do the following tasks: Ask the user to enter type of package, ('S' for the standard and 'V' for VIP package) as an input. If the users enter 'S', your program then asked the user to enter the standard code and number of nights they will stay in the hotel. Meanwhile if the users enter 'V', the user should enter the VIP package code and number of nights they will stay in the hotel. Use the above functions as defined in (a) and (b) to get the total price charges and display the charges. Display an appropriate message if the user enters an Invalid type of package or package code" (20 marks)

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!