For lab #3 the student will create a program that calculates the cost of a hotel reservation and states what type of room the customer
For lab #3 the student will create a program that calculates the cost of a hotel reservation and states what type of room the customer will be assigned. Obtain this input: Number of people on the reservation Number of nights Age of oldest visitor Pricing rules: 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. Output: Type of room Total cost of reservation based on discount, type of room, # of nights Program requirements: Use both the switch and if keywords in your program Use loops to ensure that the user enters valid, numeric data as their inputs. If the input is not valid, the program should output a message to the user and ask them to enter the correct value(s). Use a function to calculate the total cost. Use a function to calculate the discount.
Please can u do it in Language C,
Please can u do it in Language C,
Step by Step Solution
There are 3 Steps involved in it
Step: 1

Get step-by-step solutions from verified subject matter experts
100% Satisfaction Guaranteed-or Get a Refund!
Step: 2Unlock detailed examples and clear explanations to master concepts

Step: 3Unlock to practice, ask and learn with real-world examples

See step-by-step solutions with expert insights and AI powered tools for academic success
-
Access 30 Million+ textbook solutions.
-
Ask unlimited questions from AI Tutors.
-
Order free textbooks.
-
100% Satisfaction Guaranteed-or Get a Refund!
Claim Your Hoodie Now!

Study Smart with AI Flashcards
Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge
Explore Flashcards