Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions