Question: Write a program that takes in a person's name and age if they are under the * age of 18 print out Sorry , too

Write a program that takes in a person's name and age if they are under the * age of 18 print out "Sorry , too young" if they are between the ages of * 18 (inclusive) and 21 (excluded)--> [18,21) print out * "Hey you're an adult! But can't drink yet..." if they are 21 or older * print out "Look forward to paying bills until you die " * * SAMPLE RUN * ----------------------- * Please enter your age: 19 * Please enter your name: Kate * * Hey Kate you're an adult! But can't drink yet... * ------------------------ * Please enter your age: 10 * Please enter your name: Amy * * Sorry Amy, too young * ------------------------ * Please enter your age: 33 * Please enter your name: Josh * * Look forward to paying bills until you die Josh */

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!