Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

please help TARIZONA STATE school of computing, informatics, decision systems engineering HW 3 Toples: Using class String Understand how to call methods Using if-else statements

please help image text in transcribed
image text in transcribed
TARIZONA STATE school of computing, informatics, decision systems engineering HW 3 Toples: Using class String Understand how to call methods Using if-else statements Note: Your programming assignments require individual work and cut to be of my benefit. Every student must work independently on his or her assignments. This means that even tent master that neither a soft copy nor a hard copy of their work gets into the hands of another student Sharing your ment with this in any way is NOT permitted. Also finding someone to write your program or using websites are NOT permited Violations of the University Academic Integrity policy will not be ignored. The university academie integrity policy is found at this link links to an external site Links to temat site Assignment Documentation: All submitted assignments must begin with the descriptive comment block similar to the one shown belowIt must contain your name and the other information illustrated. To avoid losing trial purs, make sure this comment header is included in every assignment you submit, and that it is updated accordingly from regement to assignment M W STUDENTE: your // FLOWE: title of the source de W DESCRIPTION:description of the green W TIHE SPENT: how long it took you to complete the att W DATE: the date you stated this stento Questions are on canvas (5 points). Programming (15 points) Write a complete Java programin z sousce file to be named HW3.java The program asks the wer for their full name (first middle lasten the sertline method se string in any combination of upper and lower case. Your task is to output them in the following 1) Just Initials: Print just the initials in uppercase letters sqarted by pode 2) Last Name First With Middle Initial Print the last name in lower case with the first letter capitalized, followed by a comma and the first name in in lower case with the first letter capital and then the middle nitial capitalized followed by a period 3) First and Last Name Only Print the just the first nume followed by the last name - all names with first letter capitaliced. Note: Your program has to check for middle name and if the user dessuthave a mildle name your program has to print the Variations without the middle name See the sample output below Important You will not get points if you do not read the strings online is the nextLinet) method, not the nexto method). You cannot use the Scanner class to extract different parts of the name. You have to use the methods in String class Note: The Java API (Application Programming Interface) document is the classes and methods of the Java library, Go to pdocs.oracle.com java.ides and find out the methods you may need to answer the questions Specifically, you may find some of the following String methods useful chat Mt. concat contains, index ofisEmpty, lastindexOf length, substring, to Lower Case, to UpperCase cte. Sample Output with user input in red Sample what are your first, de and late? A Lovelace Estas TAL Last one test Lovelace, Ada First and last Ada Lovelace Sample run 2 What are your first, vede ud Iust names! SALLY rachel Initials 1 5.R.R. Lastest de Sally First and last Sally Ride Neke. Do NOT we any Java language or library features that we have not already covered in class. For example, do not we arrays or ArrayLists Note: Do NOT put of your source files in a modulo or package! Submit your HIW by following the instructions below: Upload and submit your HW).java file here. NO LATE ASSIGNMENTS WILL BE ACCEPTED

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

Students explore these related Databases questions

Question

Define safety and health.

Answered: 3 weeks ago