Question: Write an application that asks the user to enter his/her first name, last name, birthday, and where you born (all fields type String ) and

Write an application that asks the user to enter his/her first name, last name, birthday, and where you born (all fields type String) and prints their information to the console. Use the techniques discuss in class. The application should use printf.

For reference you could read Chapter 2 from the textbook. Remember to use the class Scanner and the method next() or nextLine() for String fields.

You must use a text editor, like notepad.exe, notepad++.exe, etc (you can not used any IDE).

You must submit four files, two source codes (.java extension) and two bytecodes (.class extension).

____________________________________________________

____________________________________________________

Open a terminal or command prompt (Ctrl+R cmd this is for Windows OS). Then open a text editor, like notepad MyInfo.java

To compile the application from console type:

C:\> javac MyInfo.java

To run or test your application from console (type the name of your bytecodewithout the extension):

C:\> java MyInfo

The output must be something like these:

__________________________________________________________

Welcome!

What is your first name? Carlos

What is your last name? Lopez

When is your birthday? 08/12/1979

Where did you born? Jamaica

Display my info:

First Name: Carlos

Last Name: Lopez

Birthday : 08/12/1979

Born in : Jamaica

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!