Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions