Question: Java Instructions Write a Java console application that prompts the user to enter the first name and last name, then prints the welcome message. The

Java

Java Instructions Write a Java console application that prompts the user to

enter the first name and last name, then prints the welcome message.

Instructions Write a Java console application that prompts the user to enter the first name and last name, then prints the welcome message. The Console Output Please enter your first name: Jerry Please enter your last name: Zhou Hello, Jerry Zhou, Welcome to CIS 226. Extra Credit (5 points) Enhance your program to print error meesage if user doesn't enter first and/or last name. Please enter your first name: Please enter your last name: Sorry, you have to enter your name to enroll into CIS 226 Hint Download Assign2ex class and run it in a command window: java Assign2ex Write comments for extra credit per class coding conventions . Use String method isEmpty() to check if user didn't type any characters. . User if/else statement to decide print welcome message or error message. Use logical operator ll or &&to combine two conditions into one. If you did the extra credit part, just submit one copy of your code, i.e. Assign2ex java instead of Assign2 java

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!