Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using string functions and all other programming features discussed in the class

ID: 3761158 • Letter: U

Question

Using string functions and all other programming features discussed in the class, write a program that will prompt a user to input their name (first and last). Ex: Please enter your first and last name: John Doe Then, output the string. Next, prompt the user to input their nickname. Ex: Enter your nickname: Rowdy Then modify the name string to consist of the person’s first name, nickname (in all caps, enclosed in double quotes) and last name. Then output the modified string. Ex: John “ROWDY” Doe NOTE: This program should loop, prompting the user to decide whether or not he or she wishes to enter another name. Ex: Do you wish to enter another name(y/n)? Using C++ code.

Explanation / Answer

#include #include using namespace std; char Name[46], // the full names leangth - 2 firstName[16], lastName[16], nickName[16]; int numOSpaces; //void rearrangeName(); int FindSpace(string, int); int FindNull(string); int main(){ cout 1 || numOSpaces < 1){ if (numOSpaces > 1) cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote