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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started