cduffie2, on 23 March 2010 - 06:28 PM, said:
I was wondering if anyone might be able to get me started with the following which is an assignment for my C++ class.
Here is the assignment:
Jerry’s Automatic Bowling Center has been requested by local police to supply the bowling record of Miss Sonja Sabre . Jerry’s computer uses the information from the automatic pinsetter to control the scores and graphics of the lane scoreboard. The data in lane9.dat includes the individual roll scores 0-10 for the ten frames of a game and prompts for graphics depending on the situation. In Project 6++ you had to rewrite the file as YIBowl.txt with only numeric values (less than or equal to ten)
Use this file to show the ten frame scores with the program YIBowlScore.cpp
The original lane9.dat file looked like this:
8 split 1 9 1 spare 7 2 10 strike 8 2 spare 6 split 2 7 3 spare 10 strike 10 strike 10 turkey 8 1
And after "Project 6++" when I removed the text from the file. So in short I have a file called YIbowl.txt with the following information in it:
8 1 9 1 7 2 10 8 2 6 2 7 3 10 10 10 8 1
I know that I should probably use arrays to set this up, but my teacher is pretty awful, and I wish I could say I feel I have learned something in this class. Any help would be greatly appreciated.
Here is the assignment:
Jerry’s Automatic Bowling Center has been requested by local police to supply the bowling record of Miss Sonja Sabre . Jerry’s computer uses the information from the automatic pinsetter to control the scores and graphics of the lane scoreboard. The data in lane9.dat includes the individual roll scores 0-10 for the ten frames of a game and prompts for graphics depending on the situation. In Project 6++ you had to rewrite the file as YIBowl.txt with only numeric values (less than or equal to ten)
Use this file to show the ten frame scores with the program YIBowlScore.cpp
The original lane9.dat file looked like this:
8 split 1 9 1 spare 7 2 10 strike 8 2 spare 6 split 2 7 3 spare 10 strike 10 strike 10 turkey 8 1
And after "Project 6++" when I removed the text from the file. So in short I have a file called YIbowl.txt with the following information in it:
8 1 9 1 7 2 10 8 2 6 2 7 3 10 10 10 8 1
I know that I should probably use arrays to set this up, but my teacher is pretty awful, and I wish I could say I feel I have learned something in this class. Any help would be greatly appreciated.
Hey, I have to do this assignment too, but I'm stuck on the first part with getting rid of the text in the file. How did you do that?

New Topic/Question
Reply



MultiQuote





|