Answered step by step
Verified Expert Solution
Link Copied!

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 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

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago

Question

=+herself to in terms of equity with regard to this assignment?

Answered: 1 week ago