Write down a program that reads a person''s name

Assignment Help Computer Engineering
Reference no: EM1331961

Write a program that reads a person's name in the following format: first name, then middle name or initial, and then last name. The program then outputs the name in the following format:

Last_Name, First_Name Middle_Initial.

For example, the input
Mary Average User

should produce the output:
User, Mary A.

The input
Mary A. User

should also produce the output:
User, Mary A.

Your program should work the same and place a period after the middle initial even if the input did not contain a period. Your program should allow for users who give no middle name or middle initial. In that case, the output, of course, contains no middle name or initial. For example, the input
Mary User

should produce the output
User, Mary

If you are using C strings, assume that each name is at most 20 characters long. Alternatively, use the class string. Hint: You may want to use three string variables rather than one large string variable for the input. You may find it easier to not use getline.

Reference no: EM1331961

Questions Cloud

Write the thoughts according to you : All doctor offices have not become 100 percent computerized yet. You can still see good % of offices use manual patient record files indexed by the first letter of patients' last names.
Different forms of corruption : How does corruption come about within an organization? Explain in detail. What conditions must exist, or what factors allow corruption to seep into public organizations? Explain in detail.
Explain business systems and non-metric variables : Explain business systems and non-metric variables
How to an edited version of the same text to another file : create a program that reads text from one file and writes an edited version of the same text to another file.
Write down a program that reads a person''s name : Write down a program that reads a person's name.
Explain what are the similarities among brick and mortar : Explain what are the similarities among brick and mortar
Examining cultural and ethnic differences of countires : Examine the cultural and ethnic differences of the two selected countries and determining the appropriate negotiation tactic that would be most effective in reaching the objective.
U.s. border security : Prepare a comprehensive plan for U.S. border security. The plan will include concepts such as border security, immigration issues, economic impact and future political ramifications.
Preserve uppercase letters for the first word of sentence : create a program that can be used to train the user to use less sexist language by suggesting alternative versions of sentences given by the user.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd