Question: 2 . 2 6 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last name,
LAB: Login name
Write a program that creates a login name for a user, given the user's first name, last name, and a fourdigit integer as input. Output the login name, which is made up of the first five letters of the last name, followed by the first letter of the first name, and then the last two digits of the number use the operator If the last name has less than five letters, then use all letters of the last name.
Ex: If the input is:
Michael Jordan
the output is:
Your login name: JordaM
Ex: If the input is:
Kanye West
the output is:
Your login name: WestK
What is the code that formed?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
