Question: Write a program in C++ that asks for your age in years, your weight in kilograms, and your height in centimeters and then tells you

Write a program in C++ that asks for your age in years, your weight in kilograms, and your height in centimeters and then tells you the following based on the answers provided: a) If you are old enough to drive; b) If you are in your twenties; c) If you are either younger than 22 and less than 65 kg or older than 26 and taller than 180 cm; d) If you are neither old enough to vote, nor tall enough to hit your head on a 150 cm door frame, nor the right weight to box in the 60-64 kg division (all or none).

Each letter is a single test that should lead to a printed statement indicating that the test was passed (e.g., You are old enough to drive.) or that the test was failed (e.g., You are not old enough to drive.).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!