Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ programming Question 4 Write a program that dynamically allocates an array targe enough to hold a user-defined number of test scores. Once all the

image text in transcribed

C++ programming
Question 4 Write a program that dynamically allocates an array targe enough to hold a user-defined number of test scores. Once all the scores are entered, the array should be passed to a function named sort/) that sorts them in ascending order. Another function named average() should be called to calculate 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. Sample Output How many test scores will you enter? 3 Enter test score 1: 70 Enter test score 2 90 Enter test score 31 80 The test scores in ascending order, and their average are: 70.00 80.00 90.00 Average score 30.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago