Answer to Question #187542 in Python for samman sam

Question #187542

Write a python script that get Room No, Room Rent per day, Number of days stayed in and extra charges (breakfast, lunch, and dinner) and display total bill to customer.



1
Expert's answer
2021-04-30T16:50:51-0400
room_number = input('Enter room number: ')
rent_per_day = float(input('Enter room rent per day: '))
days = float(input('Enter number of days: '))
extra = float(input('Enter extra charges(breakfast, lunch, and dinner): '))
print('Total bill: ', (rent_per_day*days+extra) , ' $.')



Sample input/output:

Enter room number: 20
Enter room rent per day: 20
Enter number of days: 20
Enter extra charges(breakfast, lunch, and dinner): 20
Total bill:  420.0  $.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS