Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I really need help with this! Im stuck I dont understand how to code it. We use Java/ JGrasp. PLEASE HELP! Write a Java program

I really need help with this! Im stuck I dont understand how to code it. We use Java/ JGrasp. PLEASE HELP!

Write a Java program to gather the following data about a user.

Name (first and last name must be gathered here into 1 variable).

Age

Gender

Hometown

School

Major

Music

After gathering the data, you will need to separate the first and last name into 2 names and store them into additional variables. Let the user know if their first name is longer than their last, vice versa, or the same length.

Using the gender info you gathered, you will be able to use the proper title. Mx is the proper title for people that identify as non-binary. (Another variable will be needed for this).

Your output needs to have all of these things but does not have to look exactly the same

Things to know if a Scanner variable is created and called info info.next().charAt(0); is the method needed for collecting the user input as a character. After collecting an integer or character, you may need to add a next line or some of the questions may show up on the same line and messing up your data. info.nextLine();

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 Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

What is the median transaction for online transactions?

Answered: 1 week ago