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 

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

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class PersonAgeCalculator public static final int CURRENTYEAR ... 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!