Create a java application that prompts user for first name, last name, age, and GPA, then prints a summary of this information (see sample execution below): Follow this guide: Create 4 variables firstName, lastName, Age and GPA. You must use the most appropriate data type for each variable. Create a java scanner.  Use Scanner to input the user’s information (First name, Last name, Age and GPA.) Using variables, print all that information.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter5: The Repetition Structure
Section: Chapter Questions
Problem 1MQ7
icon
Related questions
Question

Create a java application that prompts user for first name, last name, age, and GPA, then prints a summary of this information (see sample execution below):

Follow this guide:

  1. Create 4 variables firstName, lastName, Age and GPA. You must use the most appropriate data type for each variable.
  2. Create a java scanner. 
  3. Use Scanner to input the user’s information (First name, Last name, Age and GPA.)
  4. Using variables, print all that information.
run:
First Name >> Tom
Last Name >> Smith
Age >> 18
GPA >> 3.5
Hi! My name is Tom Smith. I am 18 years old and my GPA is 3.5
BUILD SUCCESSFUL (total time: 13 seconds)
Transcribed Image Text:run: First Name >> Tom Last Name >> Smith Age >> 18 GPA >> 3.5 Hi! My name is Tom Smith. I am 18 years old and my GPA is 3.5 BUILD SUCCESSFUL (total time: 13 seconds)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning