Thursday, April 16, 2009

Dice Roller Assignment

Today and tomarrow we are starting to work on this assignment. We have to make a program that will model the rolling of two dice which will simulate 1000 times that will produce a frequency of ocurences either on a horizontal or vertical bar graph. He taught us and showed us an example of how to work on the graph and learned about the coding on changing the colours for each bar how to make them wider, smaller, thicker, etc. This assignment is due monday.

Random Numbers Test

We had a test on our first day back after the long Easter weekend. The test we were doing was for random bumbers and would be the last test of the year. Some of the questions on the test were really easy but I somehow managed to get them wrong even though I understood. There was a bonus question on the test but I didn't know how to do it. After the test, Mr. Chiarelli taught us about a new unit called graphics. This was a making different shapes, colours, fonts to appear on the screen. Mr. Chiarelli just showed us some of the basic coding.

Random Numbers

Last week we learned more about random numbers. Mr.Charelli had a bunch of examoles to show us, one of the examples he showed us was like a casino game. The point of this game is to pay money to roll dice. If you wanted to continue, you would have to pay more money for your second game. The point of the program was to show the average winnings of the person. . For the rest of the period, Mr. Chiarelli gave us time to review or have free time. Ralph & I decided to finish up on the program he was teaching us so that I could do good on the test.

Shooter

Last week, Mr. Chiarelli taught us a bunch of new concepts about random numbers. The reason for this was because we were going to be having a test the next week on it. This is going to be our last test. He said that for every question we would have to do a double loop. He also showed us how to make a one line statement that would find different numbers. All we had to do was type in r.Next and make sure it right or else we would get it wrong. He showed us the shooting gallery game. The shooting gallery problem was basically about gun that shoots different plates in the sky. The problem was that we had to make a program that would calculate the different posible possibilities of the gun hitting the plate. Mr. Chiarelli gave us about 30 minutes to try to finish it where afterwards he took it up.