Develop a C++ code where you declare an array of 50 elements. After assigning random values to your array, you need to compute the Mean, Median and Mode.
1.Mean

Average (sum/number of elements)

2.Median

Number in middle of sorted list

1, 2, 3, 4, 5 (3 is median)

If even number of elements, take average of middle two

3.Mode

Number that occurs most often

1, 1, 1, 2, 3, 3, 4, 5 (1 is mode)

2D Arrays

Exercise 1

Develop a C++ code where you declare a 2 dimensional array A of 50 rows and 30 columns.
1.Develop a function that assigns random values to your array. Each random value r should satisfy the following relation: -120 < r < 100 or r > 300.

2.Develop a function that generates a new array B in which you store the average of the elements stored over the same column in array A

Goal
1.Develop a function that prints the grades of students
2.Develop a function that finds the highest grade
3.Develop a function that finds the lowest grade
4.Develop a function that computes the average of each student

Hint:
Use a multiple-subscripted array (table)·Rows are studentsColumns are grades

Strings

EXERCISE 1
Develop a function that reads a string, removes all space from that string and prints out the result on the screen. Example: read “hello there” and produce “hellothere”

Redo the same thing for an array of characters.

EXERCISE 2
Develop a function that reads a string, replaces all letters “e” by “a” and prints out the result on the screenExample: read “hello there” and produce “hallo thara”

Redo the same thing for an array of characters.

EXERCISE 3
Develop a function that reads a string, finds the most repeated letter, and prints out the result on the screen. Example: read “hello there” and produce “e” is the most repeated lettre

Redo the same thing for an array of characters.

EXERCISE 4
Develop a function that reads a string and prints it backwards on the screen. Example: read “hello there” and produce “ereht olleh”

Redo the same thing for an array of characters.

EXERCISE 5
Write a myStrlen function which is the same as the library strlen function.

Redo the same thing for an array of characters.

EXERCISE 6
Write the myStrcpy function which is the same as the library strcpy function.

Redo the same thing for an array of characters.

EXERCISE 7
Write the myStrNcpy function which is the same as the library strncpy function.

Redo the same thing for an array of characters.

EXERCISE 8
Write the myStrcmp function which is the same as the library strcmp function.

Redo the same thing for an array of characters.

EXERCISE 9
Write the myStrNcmp function which is the same as the library strncmp function.

Redo the same thing for an array of characters.

EXERCISE 10
Write a program that reads a line from the keyboard, and stores that line in a string.
a.Develop a function that allows you to insert a word wherever you want in that string.
b.Develop a function that allows you to delete any word of that string.