Answer to Question #149154 in C++ for Nehaa

Question #149154

You are given two strings representing the first name and the

surname of a person. The first name is separated from the surname by a

single ':' character. The end of the surname is indicated by a second

':' character.


Both the first name and the surname will have at least one character,

and each will have at most 100 characters. 


You must output the properly capitalized version of the first name and

the surname. The first letter of the first name and the first letter

of the surname must be capitalized. All other letters must be small

letters. You must separate the first name from the surname by a ':'

and also terminate the surname with a ':'.


Sample Input 1

--------------

joHn:SMITH:


Sample Output 1

---------------

John:Smith:


Sample Input 2

--------------

jAne:Doe:



Sample Output 2


1
Expert's answer
2020-12-06T10:22:07-0500
Dear Nehaa, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog