Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to calculate the Low-Adjusted-GPA of a group of students' scores. The Low Adjusted GPA of an array of n grades is

image text in transcribed

Write a C++ program to calculate the Low-Adjusted-GPA of a group of students' scores. The Low Adjusted GPA of an array of n grades is generated by computing the average of a sub- sample of size (n-1). The smaller sample excludes one occurrence of the lowest grade found in the group. For instance, assume a group of four students whose grades are 80, 100, 90, and 80 (observe that duplicates are allowed). From the list you discard one instance of the value 80; this yields an average of 90 (derived from (100 + 90 + 80)/3). SPECS The program must include and use the following components. Assume the following Student struct has been defined as a global constant struct Student { int id; string name; double grade; }; Working data is held in an array of Student structures declared in the main program as follows. Student group [4] = { {111, "Clark", 80}, (222, "Perez", 100}, (333, "Chang", 90}, {444, "Misra", 80} }; Write a function (low AdjustedGPA) to calculate and print the adjusted average GPA. The two arguments supplied to the method are an array of Student elements and an integer representing the size of the array. The method's header follows double lowAdjustedGPA(Student s[], int n); The first function in your solution MUST be the main() method. Use function prototypes when needed

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago