Question: In this programming challenge you will create a program to handle student test scores. You will have three tasks to complete in this challenge. Instructions

In this programming challenge you will create a program to handle student test scores. You will have three tasks to complete in this challenge.

Instructions

Task 1

Write a program that allocates an array large enough to hold 10 student 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.

Input Validation: Do not accept negative numbers for test scores.

Task 2

Modify the program so the lowest test score is dropped. This score should not be included in the calculation of the average.

Task 3

Modify the program to allow the user to enter name-score pairs. For each student taking a test, the user types the students name followed by the students integer test score. Modify the sorting function so it takes an array holding the student names and an array holding the student test scores. When the sorted list of scores is displayed, each students name should be displayed along with his or her score.

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!