Share your repls and programming experiences

← Back to all posts
Assigment 8
ShreyasBhosle (1)

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 program to calculate and print the cost of the room.