Question: Write a Java application that prompts the user for an age. If the age entered is greater or equal to 65, display the statement

Write a Java application that prompts the user for an age. If the age entered is greater or equal to 65,

Write a Java application that prompts the user for an age. If the age entered is greater or equal to 65, display the statement "Age is greater than or equal to 65"; otherwise display the message "Age is less than 65". If the age entered is less than 18; display the statement "This person is a minor"; otherwise display the message "This person can legally vote. Do not create a separate class for this application. The code can be created in the main driver program.

Step by Step Solution

3.39 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Mainjava Us GDB 1 import javautilScanner 2 public class Main Min 16 00 0 3 4 5 7891012... View full answer

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 Programming Questions!