Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

6. Does your speech have a clear and logical structure?

Answered: 1 week ago