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

This project written in C++ is very much like the grader programbut must be impl

ID: 3612919 • Letter: T

Question

This project written in C++ is very much like the grader programbut must be implemented with a class. Submitting the same projectwill earn no points for the project.

The final exam in your psychology class consists of 30multiple-choice questions. Your instructor says that if youwrite the program to grade the finals, you won’t have to takethe exam.

The first data line contains the keyto the exam. The correct answers are the first 30 characters;they are followed by an integer number that says how many studentstook the exam (call it n).

The next n lines containstudent answers in the first 30 consecutive character positions,followed by the student’s name in the next 10 characterpositions.

           For each student- the student’s name; followed by the numberof correct answers; followed by PASS if the number correct is 60percent or better, or FAIL otherwise.

Use a class to implement this project. Uses the main functionprovided and pass control to the function test in Exam. There theuser can be prompted for a file name with other processing thatneeds to be done so the test method will be fairly long. Store eachline of student information in the array. Have at least twomore methods in the class.

Name your file that contains the main function ExMain.cpp andyour header file exam.h .


header file

You may make modifications in this but must use a classcontaining an array for this project.

#include <String>




struct StudentData

{

String grades;

String name;

char result; //pass or fail

}



class Exam

{

//public:


  

   void test();




private:

StudentData ary[100];

int NumStudents;

};



void Exam::test()

{


cout << "Am in member function test."<< endl;

}


This is a start for your program and must be modified to meetproject requirements. It does show how to instantiate the class andinvoke a method.


#include "Exam.h"


#include <iostream>


using namespace std;


int main()

{

Exam E;


E.test();



return 0;

}

Explanation / Answer

}

I hope this will helpful for you..........

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