Question: Java Language! Write a program that does the following: Asks the user for their name and stores it in a variable called fullName . Asks
Java Language!
Write a program that does the following:
- Asks the user for their name and stores it in a variable called fullName.
- Asks the user for their year of birth and stores it in a variable named yearOfBirth.
- Calculates the user's age at the end of 2020 and stores it in a variable named age.
- Displays the information back to the user in the following format (replacing the variable names with the actual variable values):
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
