2- Write a program that dynamically allocates an array large enough to hold a user-defined number of test
scores. Once all the scores are entered, a function should be called that calculate the average score. The
program should display the averages with appropriate headings. Use pointer notation rather than array
notation whenever possible.