Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Create a grade report, in C++ LANGUAGE, using pointers, arrays, and structs. Write a program that dynamically allocates an array(s) large enough to hold a

Create a grade report, in C++ LANGUAGE, using pointers, arrays, and structs.

image text in transcribed

Write a program that dynamically allocates an array(s) large enough to hold a user-defined number of test scores Once all the student names and corresponding scores are entered, the array(s) should be passed to a function that sorts them in ascending order. Another function should be called that calculates the average score for the group (do not include the lowest score in the calculation of average grade). The program should display the sorted list of scores and student names, as well as the course's average (use appropriate headings.) Use pointer notation rather than array notation whenever possible. Reuse the selection sort app developed in the lab Sample input data Sample output Average: 89.75 Jon Snow, 80 Daenerys Targaryen, 100 Arya Stark, 90 Cersei Lannister, 89 Gregor Clegane, 50 Grade Student 100 Daenerys Targaryen 90 Arya Stark 89 Cersei Lannister 80 Jon Snow 50 Gregor Clegane HINTS: (1) You may use two parallel arrays to store names and grades respectively. (2) A better choice is to implement a single array of struct entries, in which each struct variable holds a name and a grade. (3) A third option is to use a class instead of struct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions