Question: C++ code please use a meaningful variable. Don't use a variable like x or w please for this code no negative numbers This is how

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, the array should be passed to a function that sorts them in ascending order. Another function should be called that calculates the average score. The program should display the sorted list of scores and averages with appropriate headings, Use pointer notation rather than array notation whenever possible. Input Volidation: Do not accept negative numbers for test scores. General Restrictions For All Quizzes, Midterm And Final Exam 1. No global variables 2. No labels or go-to statements 3. No infinite loops, examples include: for(:) while(1) while(true) dol//code/while(1); 4. No break statements to exit loops C:\Users floresta\Downloads\chapter 9x.exe Negative scores are not allowed. Enter another score for this test: Negative scores are not allowed. Enter another score for this test: -19 Negative scores are not allowed. Enter another score for this test: 99 Enter test score 2: 65 Enter test score 3: 86 Enter test score 4: 12 Enter test score 5: 22 The test scores in ascending order, and their average, are: Score 12.00 65.90 10 " *22.44 86.30 99. ti Average Score: 67.80 Preto any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
