/**
    CS-11 Asn 7
    gradebook.cpp
    Purpose: caclulates overall grade for the semester.

    @author Ed Parrish
    @version 1.0
 */
#include <iostream>
using namespace std;

// Avoid magic numbers.
// Change the following constants however you like.
const double WEIGHT_ASN = .40;
const double WEIGHT_MID = .25;
const double WEIGHT_FINAL = .35;

const double MIN_A = .90;
const double MIN_B = .80;
const double MIN_C = .70;
const double MIN_D = .60;

const int NUM_DECIMAL_PLACES = 4;
const double PERCENT_MULTIPLIER = 100;

/**
    Reads the scores from cin using the standard input stream,
    sums the scores and values, and stores the sum of the
    scores and values in the reference parameters.

    @param sumScores Sum of all scores entered by the user.
    @param sumValues Sum of all max values entered by the user.
*/
void readScores(int& sumScores, int& sumValues);

/**
    Converts the percentage to a letter grade.

    @param percentage The percentage to convert.
    @return The letter grade.
*/
char toLetterGrade(double percentage);

// Application driver
int main() {
    int asnValue = 0, asnActual = 0;
    int midValue = 0, midActual = 0;
    int finalValue = 0, finalActual = 0;

    cout << "Enter your assignment scores (-1 to exit):\n";
    readScores(asnActual, asnValue);
    cout << "\nEnter your midterm scores (-1 to exit):\n";
    readScores(midActual, midValue);
    cout << "\nEnter your final exam scores (-1 to exit):\n";
    readScores(finalActual, finalValue);
    cout << "\n\n";

    return 0;
}

// Read the scores from standard input and sums the scores and values.
void readScores(int& sumScores, int& sumValues) {
    sumScores = 0;
    sumValues = 0;
    // Use cin and a loop to read all the scores and values
}

// Converts the percentage to a letter grade.
char toLetterGrade(double percentage) {
    char letterGrade = 'z';
    // Use if-else statements to return a letter grade
    return letterGrade;
}

