-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
40 lines (32 loc) · 958 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <iostream>
#include "includes/student.h"
using namespace std;
const int AP_STUDENTS = 2;
const int NBR_STUDENTS = 3;
int main() {
Student students_ap[AP_STUDENTS] = {Student("Mike", "Miller"),
Student("Linda", "Lawson")};
Student students[NBR_STUDENTS];
cout << "Enter scores for AP students\n";
for(int i = 0; i < AP_STUDENTS; i++){
students_ap[i].setScores();
}
cout << "Show scores for AP students\n";
for(int i = 0; i < AP_STUDENTS; i++){
students_ap[i].showScores();
}
cout << "Enter names for non-AP students\n";
for(int i = 0; i < NBR_STUDENTS; i++){
students[i].updateName();
}
cout << "Enter scores for non-AP students\n";
for(int i = 0; i < NBR_STUDENTS; i++){
students[i].setScores();
}
cout << "Show scores for non-AP students\n";
for(int i = 0; i < NBR_STUDENTS; i++){
students[i].showScores();
}
cout << "\nGoodbye\n";
return 0;
}