Question: write a C++ program that prompts the user to get the number of days to stay at the hotel and to choose a price per

write a C++ program that prompts the user to get the number of days to stay at the hotel and to choose a price per night from a list of prices provided in the prompt.

your program is to calculate the total charges for the duration stayed at the hotel as follow

tax rate should be used as a constant 8%

your program should display the following:

Customer name, number of days, cost per day, taxes paid and total charges

sample input:

Customer Name: xxxxxxxxxxxx

number of days: xx

cost per night (100, 125, 150, 200): xx

Sample output

Type any hotel name here

Customer Name: Number of days Cost per day

---------------------- --------------------- ----------------

John xx xxx

Tax Amount: xxx

Total Charges: xxx

Thank you for staying at "hotel name"

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!