-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAS3114.h
36 lines (33 loc) · 989 Bytes
/
MAS3114.h
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
#pragma once
#include "Course.h"
#include <array>
#include <iostream>
using namespace std;
//this bit says that this particular class is a child of Course
class MAS3114 : public Course {
private:
//there are 4 exams, 240 points total
//No separate final exam
double participation; //52.5 points total
double quiz; //60 points
double homework[30]; // 90 points total
array<double, 30> tempHomework;
double projects[5]; //130 points total
array<double, 5> tempProjects;
//helper functions for calc gpa
double pointSummer(double[], int);
double examPointSummer(array<double, 20>);
public:
//constructor
MAS3114();
//calculate gpa based on all grades in class
void calcGpa();
//setters for private variables
void updateHomework(int, double);
void updateProjects(int, double);
void updateParticipation(double);
void updateQuiz(double);
void updateExams(int, double);
//prints all of the grade values for the class
void printAll();
};