You have been asked to write a program that allows the user to input a first nam
ID: 3590826 • Letter: Y
Question
You have been asked to write a program that allows the user to input a first name, middle initial (without the period), and last name of a user and then display that person’s name with the first, middle initial followed by a period, and last name last. While designing the program, you decide it is best to develop an algorithm using pseudocode.
Use structured programming principles to develop an algorithm using pseudocode to solve the problem. Use Microsoft Word to complete this part of the assessment.
Use Microsoft Word to complete this part of the assessment
Explanation / Answer
Sample inputs :
John M Harvey
Sara K Daisy
Matthew R Jose
Sample Output
JM. Harvey
SK. Daisy
MR. Jose
Pseudo Code :
Read Complete Name in input format. (e.g. John M Harvey)
Copy first character of first string in the new output string. (J)
Append second string to the output string.(JM)
Append a period(.) followed by a space to the output string. (JM. )
Append the last name to the output string. (JM. Harvey)
Display the output string. (JM. Harvey)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.