Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python: Based on the material covered in chapter 3 (decisions). The cost of renting a room at a hotel is, say $100.00 per night.

Use Python: Based on the material covered in chapter 3 (decisions). 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: if the number of rooms booked is at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also, if rooms are booked for at least 3 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). Assume sales tax is applied to the total bill before any discounts have been taken out.

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 bookedthe total cost of the rooms,the sales tax,and the total billing amount.

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions