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

Please answer using Visual Studio C++ And please try to write comments to exmpla

ID: 3695218 • Letter: P

Question

Please answer using Visual Studio C++

And please try to write comments to exmplain the steps

Key Concept: Functions, Arrays, Objects and Classes

Computing grades can be a tedious task. For this lab, you will generate code that will compute a student’s grade for a class. You will create several functions to help you compute a student’s final grade. For this Lab, we will read in the scores from an input file. Use the previous lab as your base and convert out

We will restrict the types of grades to six:

Homework

Quiz

Lab

Project

Exam

Final Exam

Part I: Create Score Class

Write a new class for the Score. The Score should store the following:

Score

Max points for assignment

Grade type

Part II: Input Function

Write a function that will read in the data from a text file to store in the array of Scores. This function will have four parameters passed by reference:

Array of Scores

Size of the arrays

Part III: Average Function

Write a function that will compute the average of a specific grade type. This function will have four parameters passed by value and return the average.

Array of Scores

Size of the arrays

Part IV: Calculate Final Grade Function

Write a function that will compute the student’s final grade based on the grade type averages and their weight (you can define these in the main) towards the final grade. The input parameters will be up to you determine/customize. Just make sure the function returns the final grade (numerical).

Part V: Output Final Grade Function

Write a function that will output the numeric and letter grade for the student.

Explanation / Answer

#include<iostream>
using namespace std;

class Score
{
   int Score1;
   int Max_points;
   char Grade;
public:
   void inputs(int &scores2[], int &Max_points1[], int &grades, int size);
   void average();
   void final_grade_function();
   void display_grade_function();
};

int main()
{
   return 1;
}