Question: I have a coin flip project for java. the coin flip and count work fine, but we are also supposed to have a seperate function

I have a coin flip project for java. the coin flip and count work fine, but we are also supposed to have a seperate function (flip) that returns true for heads and false for tails on each toss. Haven't been able to get that to work. Also, it is unclear whether or not the assignment requires an image of a coin to display heads or tails with each toss. Just in case, help with that would also be appreciated. Here is the code I have...Thanks.

Coin Toss Simulation

Coin Toss Simulation

Heads

Tails

onclick = "toss()" />

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!