Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ackages/A59FFE77.BbStudent_2bqrzyfvre5t/TempState/Course OutlineltemCache/lab3-1.pdf_77921115 - + Fit to page (x !=0) (x >=0) (x != 1) 3. (10 points) Write a class, AgeMessages, which does the following:

image text in transcribed
ackages/A59FFE77.BbStudent_2bqrzyfvre5t/TempState/Course OutlineltemCache/lab3-1.pdf_77921115 - + Fit to page (x !=0) (x >=0) (x != 1) 3. (10 points) Write a class, AgeMessages, which does the following: a. Ask the user to enter age using a Scanner b. If the age is less than 13, print "too young to create a Facebook account" c. If the age is less than 16, print: "too young to get a driver's license" d. If the age is less than 18, print: "too young to get a tattoo" e. If the age is less than 21, print: "too young to drink alcohol" f. If the age is less than 35. print: oo young to run for President of the U.S." and on next line print: "(How sad!)" g. If the age is greater and equal to 35, print: "able to do anything" and on next line print "(How happy!)" Tips Use an if statement Submission Copy and paste your code Screen shot the console with user input of 2 Screen shot the console with user input of 18 Screen shot the console with user input of 91 Sample Run How old are you? You are.. too young to create a Facebook account too young to get driver's license too young to get a tattoo too young to drink alcohol too young to run for President of the U.5. (How sad!)

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

Students also viewed these Databases questions

Question

(f) What type of factorial design it is? Pg45

Answered: 1 week ago