Question: please can someone help me with this code in c++ Design a Scores class that has private member variables to hold three quiz scores, a
please can someone help me with this code in c++
Design a Scores class that has private member variables to hold three quiz scores, a constructor a
constructor and accessor/mutator (get and set) functions for each quiz. Then in main.cpp add an
array of two sets of scores, print out those scores and print the average scores for each student.
Scores.h
- declares the class, the accessors and mutators, declaration of average member function.
Scores.cpp
defines the double average() member function
main.cpp
declare an array of 2 Scores, read in the 2 sets of 3 scores, Go through the array, call the
.average() member function for each set, and print the 3 values and the average for each set.
thank alote
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
