Question: Program 5 Using string functions ( strcpy , strcat, strncpy , strncat, etc. ) , and all other programming features discussed in the class like

Program 5
Using string functions (strcpy, strcat, strncpy, strncat, etc.), and all
other programming features discussed in the class like array and pointers, 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 last name
comma, nickname (backwards, in all caps, enclosed in double quotes)
and first name.
Then output the modified string.
Ex: Doe, "YDWOR" John
Bonus (+10)
Output first and last name alternating every two characters:
John Doe Ex: JoDohne
Tim Wheaterton Ex: TiWhmeaterton
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)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!