Question: This week's assignment will need to perform the following tasks. Prompt the user for a/their first and last name (put this into a String object)
This week's assignment will need to perform the following tasks. Prompt the user for a/their first and last name (put this into a String object) Determine the number of characters in the name Determine if the name is a Short name, average length name, or a long name (An average length name is 13 characters for the purpose of this assignment) Next the program needs to randomly pick a character between a and z. (use the Math.random() function) Now, determine if that randomly picked character appears in the name entered or not. (You should account for lower case and uppercase letters - so if the user entered Maurice Moss and the selected character was m, it should indicate that the character was found. ) in JAVA.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
