Question: Write an interactive Java program that prompts for and reads for a person: the year of birth, the last name, and his first and
Write an interactive Java program that prompts for and reads for a person: the year of birth, the last name, and his first and middle initials. It then computes and displays the person's age in the format shown in the sample program run below: Enter your year of birth: 2000 Enter your last name: Muhsin Enter your first initial: K Enter your middle initial: s Mr K. S. Muhsin your age is 22 Note: Your program must declare and use a constant CURRENT YEAR.
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
import javautilScanner public class PersonAgeCalculator public static final int CURRENTYEAR ... View full answer
Get step-by-step solutions from verified subject matter experts
