Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a function that dynamically allocates an array of integers. The function s

ID: 3533764 • Letter: W

Question

Write a function that dynamically allocates an array

of integers. The function should accept an argument

indicating the number of elements to allocate.

Populate the array with 50 test scores between 55

and 100 using the function that you created.

Display scores in rows of five scores.

Write a function to compute the average

and return the value.

Display the average value.

Write a function to sort the array in acending order.

Display the sorted scores in rows of five.

Hint: See Selection Sort Pattern in Lecture.

Write a function to find the median value

and return the median value.

Display the median value.

Write a function to find the lowest and highest

scores and

Explanation / Answer

#include using namespace std; int main() { int numElements; // To hold the number of elements to allocate int *values; // A pointer to the array int count; // A loop counter // Get the array size. cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote