Question: i am beginner of programming fundamental. so each code of line comment and explanation. do not use this header files : #include , #include console

i am beginner of programming fundamental. so each code of line comment and explanation.

do not use this header files : #include, #include

console on output pic will be send

Instructions:

1. You are not allowed to use anything other than pointers and dynamic memory.

2. One function should perform one functionality only.

3.code in C++.language

Write a program in C++ language 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 Validation: Do not accept negative numbers for test scores.

Example

Enter the number of test scores: 4

Enter each test score:

Test#1: 34

Test #2: 73

Test #3: 22

Test #4: 89

Sorted test scores:

Test #1: 22

Test #2: 34

Test #3: 73

Test #4: 89

Average = 54.5

Hint:

double inputValidation(double);

void getElementsofArray (double *, int);

void sorting(double *, int); //dont use any builtin function

double average (double *, int);

void displayArray(double *, int);

console on output pic will be send plz.

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!