Question: Simple C++ program Important: You must use the array for this lab, no vectors allowed. Create a Recursive Function Write a function that recursively prints

Simple C++ program

Important: You must use the array for this lab, no vectors allowed.

Create a Recursive Function

Write a function that recursively prints a string in reverse. The function has ONLY one parameter of type string. It prints the reversed character to the screen followed by a newline character.

Example: Input of Hello, world should output dlrow ,olleH(newline).

Note: Your recursive function just needs to print the reverse of the string rather than actually reversing the string itself.

Menu

Your program needs to demonstrate the functions by providing a menu.

The menu should provide user choices to select the function to call, after prompting user input for function call and the function outputs results, the menu should go back to the first menu to let the user continue choosing the function to call.

The menu should prompt the user to enter a string and your program reversely prints the string

Note: Must use getline() in standard library so the input takes space characters.

The menu must also provide the option to quit the program.

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 Databases Questions!