New to java tooo...! Please HELP

Hi guys,

im new to JAVA and need to do up this problem....

1. (a) You are developing code for a computer game called CoinSnap, which involves tossing three coins.
Write a Java class representing a single coin, with public methods toss (randomly selects heads or tails), isHeads (returns true if the coin is heads), and toString (returns a string “Heads” or “Tails”). The class may also require one or more private member variables.
Note: The toss method may need to use the Math.random method, which takes no parameters and returns a random double value between 0 and 1. [6]
(b) Using the class described above, write a Java program to play CoinSnap (except for code to calculate prize money: see Part (c) below). The rules are:
You start with €100
Each play costs €5
When you play, the computer tosses the three coins, displays them, and calculates your prize money, if any (this is done by calling a method to calculate the prize money: see Part (c) below)
The prize money is added to your current amount and this is displayed
If you run out of money, you are asked to leave and the game ends
After each play, you are asked whether you wish to play again or finish, provided you have not run out of money
If you decide to finish (without having run out of money), you are congratulated and the amount of money you are left with is displayed.
The program should be carefully designed and appropriate decision structures should be selected, to avoid long-winded or repeated code. The code should be clear, neatly formatted and correctly indented. [15]
(c) Add a method to the program to calculate prize money. This method has three parameters, each representing a coin object, and it returns the prize money calculated. The prize money is €100 if all three coins are heads, €50 if all three are tails, or €0 otherwise