Design and create a class named Stats that has an array of 12 doubles as one of its member variables. The values in the array should be set by making 12 calls to a public member function named setValue that accepts two arguments, an integer indicating which value is being provided (the first number, the second number….etc) and a double holding the actual data value.

what does that mean?

I made this

#include <iostream>
#include <iomanip>

using namespace std;

class Stats
{
private:
double values[12];
public
Stats();
};

void Stats::Stats()
{
int num;
for(int i = 0; i <=12; i++)
{
//SOME INPUT VALIDATION HERE
cout << "Input value # "<< i << endl;
cin >> num;
values[i] = num
}
}

but is that what it means?

Similar Questions
    1. answers icon 3 answers
  1. My school is named FCA.My English class begins at 10:55 am. My history Live Lesson begins at 3:45 pm. My science class is named
    1. answers icon 1 answer
  2. 9.10: Reverse ArrayWrite a function that accepts an int array and the array’s size as arguments. The function should create a
    1. answers icon 3 answers
    1. answers icon 1 answer
more similar questions