Question
Create a C# Console app Project in Visual Studios Menu: Room number Amenities Price 111 1 king size bed $130.00 112,113,114 2 double beds $145.00
Create a C# Console app Project in Visual Studios
Room number | Amenities | Price |
111 | 1 king size bed | $130.00 |
112,113,114 | 2 double beds | $145.00 |
211,212 | 1 queen size bed | $125.00 |
213 | 1 double bed and 1 sofa bed | $170.50 |
Write a program called HotelReservations that prompts a guest for a room number. Once the room selection is made, display the amenities and price for the room. Allow the guest to continue choosing multiple rooms if desired (displaying the amenities and price for each one selected). When the guest has no more rooms to select, they should type in -99 to stop selection. When the user enters -99, display the total cost of all rooms selected and end the program. If the user enters a room number that does not exist, the program should display Input error try again and ask for another room selection. Use while loops and switch statements to solve this problem. Display all currency values with 2 decimal places.
Example output:
VolState Inn Hotel Reservation System
Please enter a room number (or -99 to quit): 112 This is a room with 2 double beds priced at $145.00.
Please enter a room number (or -99 to quit): 110 Input error try again
Please enter a room number (or -99 to quit): 212 This is a room with 1 queen size bed priced at $125.00.
Please enter a room number (or -99 to quit): -99 Total cost of rooms selected is $270.00.
*Please enter comments so I can better understand.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started