Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm wondering if I defined my member function displayScores() and sumScores() right code is in c++ Iplementation file include iostrsam include scores. h include ckstdlab>
I'm wondering if I defined my member function displayScores() and sumScores() right
code is in c++
Iplementation file include iostrsam include "scores. h" include ckstdlab> using nanespace std; //header file scores.h using namespace std; constructor scores::scores() clasS SCOres // no initialization to do private: / destructor scores::scores() int S[40l; I/ maximum of 40 scores can be stored int howMany 1/ how many scores are in S I nothing to do public: scores ) scores(); PURPOSE: addScores() adds another scores void scores::addScores int s) void addScore(int); // adds a score; provide the scor as argument int sumScores) int avgScore); // sums up scores and returns it // finds the average score and returns it PURPOSE: adds all the scores together void displayScores); I/ displays the scores int scores::sumScores() int sum 0; forint 110; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started