Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 344 Weeks Ago, 6 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 05 May 2017 My Price 7.00

Write a program that reads a person’s name in the following format

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:

 

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

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.)

 

 

Answers

(8)
Status NEW Posted 05 May 2017 11:05 AM My Price 7.00

-----------

Attachments

file 1493983036-Answer.docx preview (473 words )
W-----------rit-----------e a----------- pr-----------ogr-----------am -----------tha-----------t r-----------ead-----------s a----------- pe-----------rso-----------nâ€-----------™s -----------nam-----------e i-----------n t-----------he -----------fol-----------low-----------ing----------- fo-----------rma-----------t: -----------fir-----------st -----------nam-----------e, -----------the-----------n m-----------idd-----------le -----------nam-----------e o-----------r i-----------nit-----------ial-----------, a-----------nd -----------the-----------n l-----------ast----------- na-----------me.----------- Th-----------e p-----------rog-----------ram----------- th-----------en -----------out-----------put-----------s t-----------he -----------nam-----------e i-----------n t-----------he -----------fol-----------low-----------ing----------- fo-----------rma-----------t: ----------- -----------You-----------r p-----------rog-----------ram----------- sh-----------oul-----------d w-----------ork----------- th-----------e s-----------ame----------- an-----------d p-----------lac-----------e a----------- pe-----------rio-----------d a-----------fte-----------r t-----------he -----------mid-----------dle----------- in-----------iti-----------al -----------eve-----------n i-----------f t-----------he -----------inp-----------ut -----------did----------- no-----------t c-----------ont-----------ain----------- a -----------per-----------iod-----------. Y-----------our----------- pr-----------ogr-----------am -----------sho-----------uld----------- al-----------low----------- fo-----------r u-----------ser-----------s w-----------ho -----------giv-----------e n-----------o m-----------idd-----------le -----------nam-----------e o-----------r m-----------idd-----------le -----------ini-----------tia-----------l. -----------In -----------tha-----------t c-----------ase-----------, t-----------he -----------out-----------put-----------, o-----------f c-----------our-----------se,-----------
Not Rated(0)