Question: 3.27 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last name, and a

3.27 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last

3.27 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first six letters of the first name, followed by the first letter of the last name, an underscore (_), and then the last digit of the number (use the % operator). If the first name has less than six letters, then use all letters of the first name. Ex: If the input is: Michael Jordan 1991 the output is: Your login name: MichaeJ 1 Ex: If the input is: Nicole Smith 2024 the output is: Your login name: NicoleS_4 503372.3776480.qx3zqy7 LAB ACTIVITY 3.27.1: LAB: Login name 1 import java.util.Scanner; LabProgram.java 0/10 Load default template...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Create a new Java class called LabProgram in the default package 2 In the LabProgram class define ... View full answer

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 Programming Questions!