Question: Ask the user to enter their first name. Dont forget to first declare a variable for the first name.Ask the user to enter their last
Ask the user to enter their first name. Dont forget to first declare a variable for the first name.Ask the user to enter their last name. Dont forget to first declare a variable for the last name.Ask the user to enter their age. Dont forget to first declare a variable for the age.If the user is younger than yrs old, display a message indicating that they cannot make a hotel reservation and ask the user again to enter a valid age. HINT: This is Input Validation that uses a WHILE loop. The program wont continue past this point if the user keeps entering an age younger than Ask the user what kind of bed is preferred king size, queen size, twin You must use an ifelseif construct to display a friendly message about the selected bed type. Hint: Use a char variableAsk the user how many nights the reservation will includeAsk the user what room type is preferred beach view, city view, balcony, garden view. In this hotel, all room reservations typically cost $night However, Beach View rooms cost $ more. You can use any IF construct here IF IFELSE, IFELSEIF nested IFsAdditionally, rooms with king size beds cost $ more. This cost is added to the room cost regardless of room type.Display a message indicating the cost of the reservation. A city tax is also added to the cost. In C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
