Create an application that calculates the total cost of a hotel stay.
Visual Studio Program
1. Charges in a Luxury Resort (Nr 6, Page 410)
Create an application that calculates the total cost of a hotel stay. The daily accommodation charge is $550. The hotel also provides other services like restaurant and bar, spa, car rental, and medication and rehabilitation. The application should accept the following input:
The number of days spent in the hotel
The restaurant charges including VAT
The amount accrued from spa and health treatments
The amount accrued in car rental
The amount accrued in medical and rehabilitation services
Create and use the following value-returning methods in the application:
CalcStayCharges() – Calculates and returns the base charges for the hotel stay. This is computed as $450 times the number of days in the hotel.
CalcMiscCharges() – Calculates and returns the total of the food bill, spa charges, car rental, and medication and rehabilitation charges.
CalcTotalCharges() – Calculates and returns the total of all charges.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images