Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that calculates the cost of a hotel reservation: Obtain this input: Number of people on the reservation Number of nights Age of

Write a program 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

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

The Functions of Language Problems with Language

Answered: 1 week ago

Question

The Nature of Language

Answered: 1 week ago