Question: Write a program in language C that calculates the cost of a hotel reservation: Obtain this input: Number of people on the reservation Number
Write a program in language "C " that calculates the cost of a hotel reservation: Obtain this input: Number of people on the reservation Number of nights Age of oldest visitor Visitors over 65 receive a 10% discount. Groups of 1-2 people get assigned a room with a king and sofa bed. Groups of 3-4 people get assigned a room with two queens. Groups of 5+ are not able to stay at the hotel. Use both the switch and if keywords in your program Output: Type of room Total cost of reservation based on discount, type of room, # of nights
PLEASE WRITE THE PROGRAM IN "C" language
THANK YOU.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
