Write the implementation file for class Exam as defined in Exercise 4.
Exercise 4
Write the specification file for a class called Exam that uses composition to create an array of 100 objects of class IDScore as defined in Exercise 1. The class can use the default constructor, and it will have a function that assigns an IDScore object to a location in the array, given the object and the location as parameters. The class should also have an observer that returns the IDScore object at the position specified by its parameter.
Exercise 1
Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID number as a private member, and that supplies (1) a constructor whose parameters correspond to the three member fields, and (2) an observer that returns the ID number.
class TestScore{public: TestScore(string name, int score); string GetName() const; int GetScore() const;private: string studentName; int studentScore;};
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.