/ Published in: C++
Expand |
Embed | Plain Text
int main() { statistician s = new statistician (); // Find the stats for 3 test scores // 92.4 // 87.5 // 88.3 // Add the data to the object s.next(92.4); s.next(87.5); s.next(88.3); cout << "Average: " << s.mean() << "\n"; cout << "Max: " << s.maximum() << "\n"; }
You need to login to post a comment.
