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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Ramon is graphing the function  f(x) = 3(4)x. he begins by plotting the initial value. which graph represents his initial step?
Answers: 2
question
Computers and Technology, 21.06.2019 21:00
Select all that apply. what types of documents can be created using word-processing software? business newsletters letters of application presentation slideshows customer databases
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
Many documents use a specific format for a person's name. Write a program whose input is: firstNam...
Questions
question
World Languages, 07.03.2020 03:45
Questions on the website: 13722367