Can anybody PLEASE be a complete life saver and code this for me? I'm desperate. This is the task description.

TASK

A manufacturer of games has decided to design a new snakes and ladders board consisting of 100 squares. The manufacturer has asked the systems analyst to design a simulation of the game. The systems analyst has been told that:

• There must be exactly 10 snakes and 10 ladders.

• The number of squares that a snake sends a player back must lie between 10 and 30.

• The number of squares that a ladder sends a player forward must lie between 10 and 30.

The systems analyst has decided to represent the board by using a one-dimensional array with 100 cells. Initially each cell is to be set to zero.

When the game starts the user is asked to input the positions of the snakes. This is to be done by entering, for each snake, the square on which its head is to be and the number of squares a player must go back when landing on a snake’s head. For each snake, the number of squares to go back is then to be stored in the cell representing the head of the snake, as a negative integer.

This is repeated for the ladders by inputting the squares for the feet of the ladders and the number of squares a player must go forward when landing on the foot of a ladder. For each ladder, the number of squares to go forward should be stored as a positive integer in the cell representing the foot of the ladder.

Part of the array may look similar to the extract below. This indicates that there is a snake’s head in cell 51 and its tail is in cell 41. The bottom of a ladder is in cell 40 and its top is in cell 52. The remaining squares do not contain any snakes or ladders.

You should annotate all your code and use meaningful names throughout.

(a)

Create annotated code that initialises the board ready for the user input. [2]

(b)

Create an interface that allows the user to input the data as described above. Your code should validate the input and store the data as described above. You need only check for values that satisfy the criteria given above. [5]

The rules of this game of Snakes and Ladders are:

• On each turn, a player moves forward the number of squares shown when a 6-sided die is thrown.

• If a player lands on the head of a snake, the player must move to the tail of the snake.

• If a player lands on the foot of a ladder, the player must move to the top of the ladder.

• If a move would result in the player going off the board, no move is made.

You need only simulate the moves of a single player.

(c)

Create annotated code that simulates a game of snakes and ladders. [8]