![lyss12326](/avatars/2718.jpg)
lyss12326
29.03.2021 •
Computers and Technology
#include
#include
using namespace std;
class ContestantType {
string name;
double* scores;
int numberofScores;
static int numberOfContestants;
public:
ContestantType() {
name = "No-Name";
Blank = 0;
scores = NULL;
Blank;
}
ContestantType(string name, int scoreCount, double scoresArray[])
{
Blank = name;
numberOfScores = scoreCount;
scores = new
Blank;
for (size_t i = 0; i < numberofScores; i++)
{
scores[i] = scoresArray[i];
}
numberOfContestants++;
}
void displayContestant() {
cout << "\nName : " << name
<< "\nAverage Score : " <<
Blank
<< "\nScores : ";
//Display scores :
for (size_t i = 0; i < numberofScores; i++)
{
cout << scores[i] << " ";
}
}
double calculateAverage() {
double sum = 0;
for (size_t i = 0; i < numberofScores; i++)
{
sum += scores[i];
}
return sum / numberOfScores;
}
static int getNumberOfContestants() { return numberOfContestants; }
~ContestantType() {
Blank scores;
Blank;
}
};
Solved
Show answers
More tips
- H Health and Medicine Novomin: What is it and how to use it?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
Answers on questions: Computers and Technology
- C Computers and Technology You can decide if a paint booth filter is hazardous waste by answering which of the following questions: a) is the paint residue liquid or solidified? b) is the paint...
- C Computers and Technology ON 7 Where do you receive official UC communication regarding registration, advising, etc? through the mail none of the above through your UC email account and/or personal...
- B Business Cách thức marketting cho khách sạn 3 sao sức chứa 100 người...
- W World Languages Changamoto 10 za uenezi wa kiswahili...
- S Social Studies Sức lao động là một hàng hóa đặc biệt đúng hay sai? tại sao? laays ví dụ minh họa...
- H History Ways to avoid cold war...
- C Chemistry A bicycle sold for $285 at a discount of 5% calculate the cost price of the bicycle...
- W World Languages Changamoto za uenezi wa kiswahili...
- E English Replace the underlined nouns with correct pronouns. . Abel is the boy who has lost his parents in a car accident....
- S Social Studies Nguồn gốc văn học là gì?...
Ответ:
Step-by-step explanation:
it is 1 - 6.9/100 =0.931