Question: Program #3 (33 points); Write a C++ program (in file named ReverseNumbers.cpp) as follows. The main function of the program prompts the user to enter

 Program #3 (33 points); Write a C++ program (in file named

Program #3 (33 points); Write a C++ program (in file named ReverseNumbers.cpp) as follows. The main function of the program prompts the user to enter 5 positive integer numbers and stores them in an integer array of size 5 elements (call the array numbers). Then the main function passes array numbers to another function, named reverse (..) (part of file ReverseNumbers.cpp). Function reverse (...) recursively goes through the array and reverses the digits of each number in the array. Note that function reverse (...) does not return anything (i.e., of type void) since the array is passed to it and reversed numbers are stored in the same array. Again, function reverse (...) is a recursive function. Format the outputs as follows. Shown input values are just for illustration. Test data does not show input prompts, only outputs. Integrate a simple menu in the program with these options: 1. Read 5 positive integers 2. Print array before reversal 3. Print array after reversal 4. Quit program Do Not hard-code test data in the code. Test data is entered using the menu options. Test your code with the following sample inputs and format the output as shown below. Entered numbers before reversal: Entered numbers after reversal: 234 432 567 765 12 21 3568 8635 7 17 15 Entered numbers before reversal: Entered numbers after reversal: 25 $2 35 53 45 54 55 55 51 Entered numbers before reversal: Entered numbers after reversal. 1 2 3 4 5 1 2 3 4 5 Program #3 (33 points); Write a C++ program (in file named ReverseNumbers.cpp) as follows. The main function of the program prompts the user to enter 5 positive integer numbers and stores them in an integer array of size 5 elements (call the array numbers). Then the main function passes array numbers to another function, named reverse (..) (part of file ReverseNumbers.cpp). Function reverse (...) recursively goes through the array and reverses the digits of each number in the array. Note that function reverse (...) does not return anything (i.e., of type void) since the array is passed to it and reversed numbers are stored in the same array. Again, function reverse (...) is a recursive function. Format the outputs as follows. Shown input values are just for illustration. Test data does not show input prompts, only outputs. Integrate a simple menu in the program with these options: 1. Read 5 positive integers 2. Print array before reversal 3. Print array after reversal 4. Quit program Do Not hard-code test data in the code. Test data is entered using the menu options. Test your code with the following sample inputs and format the output as shown below. Entered numbers before reversal: Entered numbers after reversal: 234 432 567 765 12 21 3568 8635 7 17 15 Entered numbers before reversal: Entered numbers after reversal: 25 $2 35 53 45 54 55 55 51 Entered numbers before reversal: Entered numbers after reversal. 1 2 3 4 5 1 2 3 4 5

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!