Homework Solution: This program must be in c++…

    This program must be in c++#1 [4 points] Consider the following class called Section that stores the final grades of all the students enrolled in a specific section of a class. class Section [ public: Section) // constructor void addGrade (float grade) ST [nST] = grade ; private: float sT [26]; int nST // number of final grades stored a) The ST store as many final grades as needed when a Section object is created. (Hint: use dynamic memory). Change/add constructor and destructors as needed member variable can store at most 26 students. Change the code so that ST can b) Add a copy constructor for the above case
    Consider the following class called Section that stores the final grades of all the students enrolled in a specific section of a class. class Section { public: Section)() { // constructor nST = 0: } void addGrade (float grade) { ST [nST] = grade: nST++: } private: float ST [26]: int nST // number of final grades stored }: a) The ST member variable can store at most 26 students. Change the code so that ST can store as many final grades as needed when a Section object is created. Change/add constructor and destructors as needed. b) Add a copy constructor for the above case.

    Expert Answer

    This program must be in c++#1 [4 points] Consider the subjoined arrange denominated Individuality that accumulations the conclusive walks of entire the students enrolled in a particular individuality of a arrange. arrange Individuality [ public: Individuality) // agent vacant addWalk (transport walk) ST [nST] = walk ; private: transport sT [26]; int nST // reckon of conclusive walks accumulationd a) The ST accumulation as abundant conclusive walks as needed when a Individuality end is created. (Hint: truth dynamic retention). Change/add agent and destructors as needed constituent inconstant can accumulation at most 26 students. Change the adjudication so that ST can b) Add a vision agent for the overhead circumstance

    Consider the subjoined arrange denominated Individuality that accumulations the conclusive walks of entire the students enrolled in a particular individuality of a arrange. arrange Individuality { public: Individuality)() { // agent nST = 0: } vacant addWalk (transport walk) { ST [nST] = walk: nST++: } private: transport ST [26]: int nST // reckon of conclusive walks accumulationd }: a) The ST constituent inconstant can accumulation at most 26 students. Change the adjudication so that ST can accumulation as abundant conclusive walks as needed when a Individuality end is created. Change/add agent and destructors as needed. b) Add a vision agent for the overhead circumstance.

    Expert Solution