Trying to finish final problem for Homework any ideas on what i need?

Hi I am finishing up my last homework problem and it ask for you to enter the Golfer A or B They both play 18 holes of golf, It then takes the total strokes for each of them from each hole Then adds that up and determins the winner this is what i have so far, I am not sure how to get it to add up the strokes for each hole.


// Problem 5 Creater by David Warner //

#include <iostream>

using namespace std;

int main()

{
int strokes = 0;
char golf = ' ';
double totalstrokes = 0.0;
int holes = 0;

cout << "Enter number of Holes played. " << endl;
cin >> holes

cout << "Enter Golfer A/B: " << endl;
cin >> golf;
item = toupper(item);

for (int counter = 0; counter < holes; counter = counter + 1)
{

switch (golf)
{
case 'A' : cout << "Golfer A enter strokes" << endl;
Strokes =
break;
case 'B' : cout << "Golfer B enter strokes " << endl;
Strokes =
break;

}


cout << "next hole played: " << endl;
cin >> golf;
}

cout << "Total Strokes : " << totalstrokes << endl;

system("pause");
return 0;
}
Topic archived. No new replies allowed.