Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 21 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 21.Ask the user what kind of bed is preferred (king size, queen size, twin). You must use an if-else-if construct to display a friendly message about the selected bed type. (Hint: Use a char variable)Ask 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 $100/night. However, Beach View rooms cost $25 more. You can use any IF construct here (IF, IF-ELSE, IF-ELSE-IF, nested IFs).Additionally, rooms with king size beds cost $10 more. This cost is added to the room cost regardless of room type.Display a message indicating the cost of the reservation. A 5% city tax is also added to the cost. In C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

Prepare a constructive performance appraisal.

Answered: 1 week ago

Question

List the advantages of correct report formatting.

Answered: 1 week ago