Question: Write a java program that prompts the user for first and last name (separately). Calculate and write out total number of letters in each name
Write a java program that prompts the user for first and last name (separately). Calculate and write out total number of letters in each name and write the name in the format last name, first name last name. Use an instance of the Random class to generate a random integer between 1 and the number of letters in the name.
Example
Enter your first name: James
Enter your last name: Bond
You have 9 letters in your name.
Bond, James Bond, your lucky number is 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
