Question: answer and complete the following in c++ programming code ( answer each seperately) 4. Suppose we would like to define an int array called asciiArray

answer and complete the following in c++ programming code ( answer each seperately) answer and complete the following in c++ programming code ( answer eachseperately) 4. Suppose we would like to define an int array called

4. Suppose we would like to define an int array called asciiArray that contains the ASCII value equivalent of the characters in nameArray. Here is what asciiArray looks like for the nameArray for Jon P. Doe: int asciiArrayl 74, 79, 78, 80, 68, 79, 69 h show what asciiArrayl would look like for your own nameArrayl as you found in Question 1 DEFINE CHARACTER ARRAY, INCLUDING INITIALIZATION (see my example) 5. You will implement a very simple encryption function. The function takes in an an integer array of a certain size and then for the elements does the following: adds 1 to the 1st element, adds 2 to the 2nd element, ..., adds n to the nth element. The function has the following signature void encrypt(int inputArray[, int size); From our example, encrypt(asciiArray, 7) would change asciiArray to 175, 81, 81, 84, 73, 85, 76} Implement this function. Show what this function will output for your own asciiArray as defined in Question 4 1. ATTACH CODE OF YOUR FUNCTION (OR YOUR ENTIRE PROGRAM IF YOU WISH) ATTACH THE OUTPUT OF RUNNING YOUR PROGRAM 6. You will now implement a handy statistical function. The function takes in an integer array of a certain size and then for the elements does the following: subtracts the average of all the elements from element 1, subtracts the average of all elements from element 2, ..., subtracts the average of all elements from element n. The function has the following signature void diffAverage(int inputArray, int size)

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!