Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem Description: Example: Currently student grade records are stored paralle

ID: 3534527 • Letter: P

Question

Problem Description:

Example:

Currently student grade records are stored parallel arrays.

    const int NG = 4;

    string names[] = {"Amy Adams", "Bob Barr", "Carla Carr",

                      "Dan Dobbs", "Elena Evans"

                     };

    int exams[][NG]= { {98,87,93,88},

                        {78,86,82,91},

                        {66,71,85,94},

                        {72,63,77,69},

                        {91,83,76,60}

                     };  

Problem:

We want to convert to an array of structures that is

allocated on the Heap with additional exam average field.

Your tasks are:

1. define a structure for student grade records.

2. declare an array of records and allocate on the Heap.

3. populate from the parallel arrays.

4. define a function to compute average and

     populate average field.

5. define a function to display name and average.

6. demonstrate your functions and program

Test Results: (Copy and Paste Console Output here.)

   

Coding: (Copy and Paste Source Code here.)

Explanation / Answer

Here you go. Download your code from here

http://pastie.org/private/4xarrz3izq6ftejxrbi1xw


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote