Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

River Bend Hotel River Bend Hotel needs a Python script that calculates a customers total bill according to the following criteria. Each customer pays a

River Bend Hotel

River Bend Hotel needs a Python script that calculates a customers total bill according to

the

following

criteria.

Each customer pays a room charge that is based on a per

-

night rate of $55. For

example, if the customer stays two nights, the room charge is

$110.

The c

ustomer

also may be billed a room service charge and a telephone charge.

In addition, each customer pays an entertainment tax, which is 10% of the room

charge only.

Your Python script should allow the hotel manager to enter customers full nam

e, the number

of nights, the total charge for room service and the total charge for using the telephone. Next,

calculate the total room charge

(

total room charge

= 55*number of nights)

, the entertainment

tax

(tax =

total room charge

*0.1)

, the total bill

(t

otal bill =

total room charge

+

room service

charge

+

telephone charge

+

entertainment tax

)

and display them.

The output of your program should look like

the

following

, where the items in black are

examples of values entered by the user:

Use string concatenation to get the spacing exactly as

shown in the example above. Use

raw_input()

for text and

input()

for numbers.

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

List the steps followed in the traditional selection process.

Answered: 1 week ago