Roll Through a Board

Write a program to simulate this board game with 100 squares. I throw two dice on each turn, and move my piece as many squares as my dice indicate. (So, if I throw a 9, I move 9 squares.) After the 100'th square, it returns back to square 1. After 10 throws, report the square I am on. (So if I threw 12 every time, my square would be 20.) I begin on the start square and then move to the 1 square from there. There is only one player on the board. If you are on a square that is greater than 80, tell the user they win.

Ask the player their first and last name. Then say "hello name, you are going to play game 1. Then throw the 2 dice 10 times and after each throw report "name, you threw a xxx and xxx for a total of xxx and you are now on square xxx." At the end of 10 throws, tell the player the final square.

Then, tell the user "name, you are going to play game 2 now" and continue to play game 2 as you played game 1, including giving the final score and saying whether they won. Repeat this for 5 games.

Finally, tell the user their average final square for all 5 games.

In coding this please use the following methods:

diceThrow:

movePlayer:

Write a flow chart on paper for the main routine before coding this. Hand in the flow chart in class.