Question: df Activity #1: Project. Labo4a Download the file Driving Eligibility.java. Run the program and examine the code. Right now, the program allows the user to
df Activity #1: Project. Labo4a Download the file Driving Eligibility.java. Run the program and examine the code. Right now, the program allows the user to enter any age they like Revise the program so that accepts only ages between 1 and 120 (inclusive). If an age out of range is entered the program will print a waming message and ask for another -- repeating the warning and reading loop un a valid age has been entered. Sample output1 This program checks to see if you are eligible for driving Please answer the questions truthfully How old are you? 130 Your age must be between 1 and 120, How old are you? O Your age must be between 1 and 120. How old are you? 55 Are you medically fit? yes You are eligible for driving Please visit https:/ovascotia.ca/sns/rm/lcence/ Sample output2 This program checks to see if you are eligible for driving Please answer the questions truthfully, How old are you? 45 Are you medically fit? no You are not eligible for driving Sorry
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
