Need some advice with my sch work. Bowling Scoring Program.
please i seek for any senior or pros advice. :)
sorry i never play bowling before so i have no idea how the system works
So basically just by using arrays.
Example i have
int[] firsttry = { 9,1,10,10,9,7,8,9,7,10,9 };
int[] secondtry = { 1,8,0,0,1,2,2,1,1,0,9 };
How to store the score(third array) by comparing for the first try and second try what is the formula??
Display Outout will be:
Code:
Frame: 1 2 3 4 5 6 7 8 9 10
First Try: 9 1 X X 9 7 8 9 7 X 9
Second Try: / 8 / 2 / / 1 9
Score: 10 20 30 50 79 95 105 124 139 149 167
Re: Need some advice with my sch work. Bowling Scoring Program.
Quote:
sorry i never play bowling before so i have no idea how the system works
This is the sort of thing you should figure out before attempting to write any code at all. Try the Wikipedia article.
Try to come up with a set of steps that you'd take if you were trying to work it out on paper, and then convert those steps to Java.
Good luck, and let us know if you have any more specific problems.