Answer to Question #42151 in C++ for bruno

Question #42151
I'm stucked with part of this assignment. The assignment is consisted on three programs, the first is the base of the others two, i did the first one already but idk how to do the second and third one, i need help! thanks
this is the first program:
// The purpose of this program is to calculate the wins, ties and losses of teams, based in function and an input file to count and define how many wins, losses and ties that each team has.

#include <iostream>
#include <fstream>

using namespace std;

void OpenGamesFile (ifstream& inFile);
void InputGame (ifstream& gamesFile, int& ourSC, int& visitSC);
void CheckGame (int ourSC, int visitSC, int& wins, int& ties, int& losses); $
void OutResults (int wins, int ties, int losses);

int main()

{
ifstream inFile;
int ourSCA, visitSCA, wins, losses, ties;

wins = 0;
ties = 0;
losses = 0;

OpenGamesFile (inFile);
InputGame (inFile, ourSCA, visitSCA);

while (inFile)
{
CheckGame(ourSCA, visitSCA, wins, ties, losses);
InputGame(inFile, ourSCA, visitSCA);

}
OutResults(win
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS