Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions