Skip to content
← Back to Community
assigment 2 :calculate the room cost
Profile icon

A hotel has a pricing policy as follows:-
Stay for 2 person : 2500Rs. per night
Stay for 3 person : 3500Rs. per night
Stay for 4 person : 4500Rs. per night
Additional person : 1000Rs. per person per night
If the customer is staying on company business tour, there is a 20% discount. Take the number of people, number of night staying, if it's business tour or not as input from user. Write a programt to calculate and print the cost of the room.

Profile icon
Profile icon