Question: This is a C++ code please use meaningful variable. Dont use variable like n or x dont allow negative numbers The output should look like

This is a C++ code
 This is a C++ code please use meaningful variable. Dont use
please use meaningful variable. Dont use variable like n or x
dont allow negative numbers
The output should look like this
variable like n or x dont allow negative numbers The output should

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!