Question: Create a new Java program called AgeGuess which 1. Creates a new Scanner object 2. Declares two variables: String name; int ageGuess; 3. Uses the

Create a new Java program called AgeGuess which

1. Creates a new Scanner object

2. Declares two variables: String name; int ageGuess;

3. Uses the Scanner objects methods to read in the name and ageGuess from the keyboard. Make sure to prompt the user for each value. The value entered should be on the same line as the prompt.

4. Displays the ageGuess and name variable values. Make sure to label each.

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!