1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 10.6.cpp : This file contains the 'main' function. Program execution begins and ends there.
// Written by Jacob Knox
//
#include <iostream>
#include "Student.h"
using namespace std;
int main()
{
const int NUM_SCORES = 10, NUM_GRADES = 5;
float scores[NUM_SCORES] = {};
char grades[NUM_SCORES] = {};
int counts[NUM_GRADES] = { 0, 0, 0, 0, 0 };
float avg = 0;
GetInputs(scores, NUM_SCORES);
GetCounts(scores, grades, counts, NUM_SCORES);
avg = CalcAvg(scores, NUM_SCORES);
Output(scores, grades, counts, avg, NUM_SCORES, NUM_GRADES);
}
|