Question: write a java program that uses while loops and selection statements. write a program that asks for the age as many times as the user
write a java program that uses while loops and selection statements.
write a program that asks for the age as many times as the user want.
the program would print " a minor" if the age is below 18.
and it would print "an adult" for input above 18 .
if the input is negative the program would print and ask the user to "enter again".
if the input is above 0, it would ask the user if he/she wants to enter the age again or quit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
