Question
In C++ A resort has 3 main areas with age and other restrictions. Collect the necessary information (but no more), and display a message or
In C++
A resort has 3 main "areas" with age and other restrictions. Collect the necessary information (but no more), and display a message or messages indicating in which restricted area a patron may be. Use nested if statements where possible to minimize the number of comparisons made by the program.
Swimming Pool Area:
Must be 18 years of age unless accompanied by a responsible adult.
Bar Area:
Must be 21 years of age, or 18 and active duty military.
Formal Dining area:
Must be 14 years of age unless accompanied by a responsible adult. No children under 5 allowed at any time.
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