Question: FOR C++ : Please design, write the code and create the requisite submission files for the following problem: Functional Requirements: A menu-driven program that offers

FOR C++: Please design, write the code and create the requisite submission files for the following problem:

Functional Requirements:

A menu-driven program that offers the user a grid of characters and then 5 options to change the grid as follows:

Menu:

1. Interchange column 2 with column 5

2. Count and display the number of vowels.

3. Display the array in a matrix (rows and columns)

4. Search for and display number of instances of any given character

5. Exit

Programming Requirements:

1. Declare a char array and initialize it as before. (You can't point at a 2D array in C++, so create an 1-dim array with 25 elements.)

2. Declare an char pointer and point to the array. From then on in the program, you may only use the pointer. You may not use the array or any array subscripting in any other part of your program. You must only use pointer addressing. You must use functions as before - but this time, pass the pointer instead of the array.

3. Always display the array and manipulate it as if it were still a 2-dim array of 5x5.

4. Make sure your code is well-organized and well-documented. No global variables. Use functions and parameters appropriately

In main(), declare and initialize a 1-dimensional array with 25 elements then declare an char pointer and point to the array. Initialize the elements to:

s l o a n

h o r s e

e g r i t

h o u s e

w a t e r

Display the menu and then execute the user's choice. Keep displaying the menu (and executing the user's choice) until the user chooses Option 5. (See pseudocode in this lesson for design help.)

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!