Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help. I have no idea where to stare and need help. Thank you. 1. You have a lot of cousins. So many, in fact,

image text in transcribed Please help. I have no idea where to stare and need help. Thank you.

1. You have a lot of cousins. So many, in fact, that you decide to write a program to help you decide how to entertain them when they come to visit. Write a program that prompts you to enter the cousin's name, age, and height (in inches), and then tells you where to take the cousin according to the following instructions. If they're over 12 and if they're tall enough (at least 5 feet), you want to take them to Great America. If they're under 12 but at least 5 feet, you'll take them to the carnival. If they're too short for rides, but old enough to be fun at the Mall (you define the cut-off point to be 12), you'll take them to the Mall. If all else fails, you'll take them to Chuck E. Cheese. The exception to this is your cousin Katie, who is obsessed with horror movies and insists you take her to the Winchester Mystery House whenever she comes to town. Use if statements. Use appropriate variable types when getting input from the user. Note: You MUST try to minimize the number of questions you need to ask. That is, you do not need to ask all three questions to determine that you should go to the Winchester Mystery House

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_2

Step: 3

blur-text-image_3

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions