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.
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 $.
Comments
Leave a comment