Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hotel Bookings with Discounts In this assignment, you will write a C + + program that meets the requirements detailed in the instructions below. Use

Hotel Bookings with Discounts
In this assignment, you will write a C++ program that meets the requirements detailed in the instructions below. Use the Assignment Template to insert the following deliverables.
Deliverables:
A description of your program.
Your C++ source code (do not submit screenshots).
A screenshot of your program running.
A short reflection outlining your experience developing the program.
Additional Deliverables:
The cpp file(s)
Program Instructions
The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conferences, the hotel offers a special discount as follows.
If the number of rooms booked is:
at least 10, the discount is 10%
at least 20, the discount is 20%
at least 30, the discount is 30%
Also if rooms are booked for at least three days, then there is an additional 5% discount.
Instructions
Write a program that prompts the user to enter:
The cost of renting one room
The number of rooms booked
The number of days the rooms are booked
The sales tax (as a percent).
The program outputs:
The cost of renting one room
The discount on each room is a percent
The number of rooms booked
The number of days the rooms are booked
The total cost of the rooms
The sales tax
The total billing amount.
Your program must use appropriately named constants to store special values such as various discounts.
Since your program handles currency, make sure to use a data type that can store decimals with a precision to 2 decimals.
Compile and run the program.
Next:
Insert required code and screenshots into the template document linked above and complete as directed.
Submit the document AND cppfile(s) separately to the assignment Dropbox in Blackboard.

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

Step: 3

blur-text-image

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions