Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions