Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 innext or innextLine This together for taking a line of input until a newline
would be String yourVariableName innextLine;To take integer input from a user you use innextInt you should assign this to a variable of type int. int yourVariableName innextInt;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.printlntext in quotations" variableToPrint;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started