Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started