Question: using java Write a program that reads the user's first name and last name, and then use them to create a UPM email for the

using java using java Write a program that reads the user's first name

Write a program that reads the user's first name and last name, and then use them to create a UPM email for the user. If the number of characters in the user's full name less than 10 letters, you should use the full name to create the user's email. The general format of the user's email should look like this: firstName.lastName@upm.edu.sa For example: 1. First name = Ali 2. Last name = Omar 3. Total number of letters in both first and last names = 7 letters 4. Output = omar.ali@upm.edu.sa If the number of characters in the user's full name greater than or equal to 10 letters, you should only use the first character in the user's first name, and the whole last name to create an email. For example: 1. First name = Abdullah 2. Last name = Omar 3. Total number of letters in both first and last names = 12 letters 4. Output = a.omar@upm.edu.sa Note: you can assume the user will always enter lowercase letters

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!