Question: In a java coin toss program, create an array of 7 coins and assign each coin a random coin value from an array list with
In a java coin toss program, create an array of 7 coins and assign each coin a random coin value from an array list with the values: 1,5,10,25,50,100 and display all of the coins with their values and whether they landed on heads or tails along with the sum of the values of the coins that landed on Heads.
For example:
25 Heads
10 Tails
5 Heads
100 Heads
50 Tails
25 Heads
5 Tails
Total Heads: 155
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
