Short answer (You must type your answers)
1) Given double abc [SIZE]. Identify:
a) type of the array
b) name of the array
c) the index of the first element
d) the name of the first element (i.e. how you denote the first element)
e) the index of the last element
f) the name of the last element (i.e. how you denote the last element)
g) the index of the 5th element
h) the number of elements in the array
Programming
Write a C++ program that complete the following tasks:
1) Define a value-return function that returns the average of an array of int (you need to set an array as a parameter, and another
int parameter for the size of the array).
2) Declare an array of intnamed aand fill in the array with 30 random numbers between 0-100, using random seed 7. (Do not print the
numbers yet). Call the function you defined in (1) to find the average of the numbers in a.
3) Declare another array of double named b and store the differences between the elements in a and the average.
4) Output the original numbers, the averageand the differences in the following format:
Array a Average Array b
======================
61 56.77 4.23
50 56.77 -6.77
65 56.77 8.23
. . . … …
Submission:
• Source code
• Screenshots of programming questions.
Is this question part of your Assignment?
We can help
Our aim is to help you get A+ grades on your Coursework.
We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals
Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples