For this assigneent I need to use a standardized string object data type from an
ID: 3661030 • Letter: F
Question
For this assigneent I need to use a standardized string object data type from ansi/iso standard c++ library. This library is #includewrite a C++ program that does the following. .Input a name ina single string variable in this order: first name , middle initial, last name. .find the first name and store it in a seperate string variable. Display the first name substring along with its length. .Find middle Initial and store in seperate string variable. Display the last name substring, along with it`s length. .concatenate a new string with the last name, a comma, a blank, the first name, a blank, and the middle initial. Display the new name. display the length of the concatenated string. find and display the position of the comma in the concatenated string. . then finally swap the first name and last name strings. display the names after they are swapped.Explanation / Answer
#include #include #include #include class name { char f_name[20]; char m_name[20]; char l_name[60]; char na[60]; int len; public: void f_input() { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.