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.



Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS