Point in the right direction? Dice
Okay so i have a program i need to make for my class. Dont want anyone to really solve it just need a push in the right direction and hopefully i can do the rest sooo here it goes.
The program simulates rolling a die with 6 sides. It should ask the user if they would like to continue accumulating the frequency of rolls stored in a data file, if the file exists. If no files exists, then the program creates one and stores the results at the end of the program. Then the program should ask the user the number of times to roll the die. The program should then simulate the rolling of the die and output the data to a dialog box as a table containing column headers of face and frequency. Frequency is the number of times each face was rolled. The program should also save the frequency of roles back to the file as accumulated data. Do not delete the data in the file. Instead the frequency of each face should be an accumulation of rolls from each run of the program. According to the rules of probability, the more times you roll the die, the closer the frequencies should get to being equal. Use error checking to ensure the user types in valid information.
Any help with this would be much appreciated, new to programming and just reading this makes me want to drop the class haha.