Bowling Frame Program
Hello, I'm stuck with this program I'm trying to make. This is what I'm supposed to do:
create a program that will track the results of each throw, 2 per frames 1-9 and 2-3 in frame 10.
Here is what I have so far:
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
|
#include <iomanip>
#include <iostream>
#include <string>
#include <stdlib.h>
#include <ctime>
#include <windows.h>
using namespace std;
int main()
{
srand(time(NULL));
int finalScore = 0;
char throws[21];
int rolls [21];
int scores [10];
int rollA;
int rollB;
int rollC;
int y=0;
int frame;
for(int x = 0; x < 21; x++)
throws[x] = ' ';
for(int x = 1; x <= 9; x++)
{
rollA = rand() % 11;
}
}
|
I can only use those headers shown in the program above.
The output should be a frame as shown from this website link:
https://www.bowl.com/Welcome/Welcome_Home/Keeping_Score/
Any help would be greatly appreciated. Thank you!
Topic archived. No new replies allowed.