Question: create a java program that does the following: 1. create a String variable and assign your name to it. 2. ceate an integer variable for

create a java program that does the following:
1. create a String variable and assign your name to it.
2. ceate an integer variable for the year 2030 and assign 2030 to it.
3. create an integer variable named currentYear and assign the current year to it (i.e 20##);
4. create an integer for your age and assign your current age to it.
5. create an integer to store the result of age + (year2030 - currentYear) where year2030 is the variable referenced in step 2.
6. Display " will be in the year " where <> are your variable values.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!