Second assignment is: Write a program that calculates class average and number of students who are following average score ranges: over 90 80.00 – 89.99 70.00 – 79.99 65.00 – 69.99 less than 65 Your program must meet following requirements Must use one dimensional array to save average of three exams for each student. -10 points Array size should be flexible. – shoud be user input via keyboard and depends on number of students in the class. -10 points Three exam scores should be input by keyboard. And calculate average of three exams and save it to the array. -10 points Create two user-defined functions – one is for calculating class average and the other is for counting how many students are in each ranges. -20 points All passing variable to the function should be “call by reference”. – meaning that you should pass pointer of an array to the function and each function should use pointer to calculate aveage as well as counting number of students in each range. -30 points The program must use proper data type. -20 points

The objective of this assignment is to write a program that calculates the class average and identifies the number of students who fall within specific score ranges. The program must fulfill several requirements.

Firstly, the program must use a one-dimensional array to store the average scores of three exams for each student. It is important to note that the array size should be flexible and depend on user input via the keyboard. In other words, the number of students in the class should determine the size of the array. This requirement ensures that the program can accommodate a varying number of students. Failure to meet this requirement will result in a deduction of 10 points.

Secondly, the program should allow the user to input the scores for the three exams for each student via the keyboard. The program should then calculate the average of the three exams and save it to the array. This calculation and storage process must be repeated for each student. By doing so, the program will have the necessary data to calculate the class average and identify students within specific score ranges. Failure to meet this requirement will result in a deduction of 10 points.

To calculate the class average and identify students within specific score ranges, the program should include two user-defined functions. The first function should calculate the class average, while the second function should count the number of students in each score range. Both of these functions should use “call by reference,” meaning that they should pass pointers to the array and utilize these pointers within the functions to calculate the average and count the number of students in each range. Failure to include these user-defined functions will result in a deduction of 20 points, and not using “call by reference” will further result in a deduction of 30 points.

Additionally, the program must use the proper data types to ensure accurate calculations and storage. Using incorrect data types will result in a deduction of 20 points.

In summary, the program must meet several requirements to correctly calculate the class average and identify the number of students within specific score ranges. To meet these requirements, the program must use a flexible one-dimensional array, allow input of exam scores via the keyboard, include two user-defined functions, utilize pointers for calculations, and use the appropriate data types. Failure to meet any of these requirements will result in point deductions.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer