Ethan H.

asked • 02/23/21

Simple Code nothing complex

  1. The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows:
  2. If the number of rooms booked is at least 10, the discount is 10%.
  3. If the number of rooms booked is at least 20, the discount is 20%
  4. If the number of rooms booked is at least 30, the discount is 30%
  5. Also if the rooms are booked for at least three days, then there is an additional 5% discount.

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 and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Round all dollar amounts to two decimal places.


1 Expert Answer

By:

Patrick B. answered • 02/23/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.