subject

Many documents use a specific format for a person's name. Write a program whose input is: firstName middleName lastName

and whose output is:

lastName, firstInitial. middleInitial.

Ex: If the input is:

Pat Silly Doe
the output is:

Doe, P. S.
If the input has the form:

firstName lastName

the output is:

lastName, firstInitial.

Ex: If the input is:

Julia Clark
the output is:

Clark, J.

middle Name = int. input Middle name:

lastName = int. input Last name:

firstInitial = firstName[0]

middleInitial = middleName[0]

print(lastName+", "+firstInitial+"."+middleInitial)
That is what I have so far on this assignment. Couid someone please help me complete it?

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, ilovepickles930
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, smariedegray
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
image
Computers and Technology, 22.06.2019 22:40, Bgreene2377
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
image
Computers and Technology, 22.06.2019 23:50, Crull5999
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
You know the right answer?
Many documents use a specific format for a person's name. Write a program whose input is: firstNam...

Questions in other subjects:

Konu
Mathematics, 27.10.2020 01:50
Konu
Mathematics, 27.10.2020 01:50