#include <string>
#include <cstdlib>
#include <iostream>
using namespace std;
string Red;
string Green;
int redScore;
int greenScore;
int totalScoreR;
int totalScoreG;
int takedowns;
int escapes;
int reversals;
int nf2;
int nf4;
int penaltyPoints;
int TotalRedScore(takedowns, escapes, reversals, nf2, nf4, penaltyPoints){
totalScoreR = totalScoreR + (takedowns * 2) + (escapes) + (reversals * 2) + (nf2 * 2) + (nf4 * 4) + (penaltyPoints);
return totalScoreR;
}
int GetScoreRed(){
cout << "How many takedowns did " << Red << " get?" << endl;
cin >> takedowns >> endl;
cout << "How many escapes did " << Red << " get?" << endl;
cin >> escapes >> endl;
cout << "How many reversals did " << Red << " get?" << endl;
cin >> reversals >> endl;
cout << "How many two point nearfalls did " << Red << " get?" << endl;
cin >> nf2 >> endl;
cout << "How many four point nearfalls did " << Red << " get?" << endl;
cin >> nf4 >> endl;
cout << "How many penalty points did " << Red << " get?" << endl;
cin >> penaltyPoints >> endl;
TotalRedScore(takedowns, escapes, reversals, nf2, nf4, penaltyPoints);
}
int main(){
cout << "This program will track the stats of a college wrestling match." << endl;
cout << "End of Period 1" << endl;
GetScoreRed();
TotalRedScore();
cout << Red << ": " << totalScoreR << endl;
cout << "End of Period 2" << endl;
GetScoreRed();
TotalRedScore();
cout << Red << ": " << totalScoreR << endl;
cout << "End of Period 3" << endl;
GetScoreRed();
TotalRedScore();
cout << Red << ": " << totalScoreR << endl;
cout << "Final Score" << endl;
}