Question: This program will show how a program can have prompting and feedback. To do this you must store the values the user gives you and

This program will show how a program can have prompting and feedback. To do this you must store the values the user gives you and print them back.To take in String input from a user you can use in.next() or in.nextLine(). This together for taking a line of input until a newline
would be String yourVariableName = in.nextLine();To take integer input from a user you use in.nextInt() you should assign this to a variable of type int. int yourVariableName = in.nextInt();For this program you will write a program that asks the user for their name along with with their age. See the sample test cases for how your program must be structured. Pay attention to when the first name vs the first and last name.You can combine text and variables in your print statements using concatenation. System.out.println("text in quotations" + variableToPrint);

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!