Three Static Methods, Display, FlipIt Store - Statistics Assignment Help

Download Solution Order New Solution
Assignment Task -                 
 

 

Task

write a class called CoinFlip

CoinFlip has three static methods

 display() 

 flipIt()

 store

 

The display() method 

displays the results of the coin flips

 

CoinFlip

 the flipIt() method

  •  flips the coin

  •  uses the Math class method random()

 

Math.random()>.5 

if value is over .5 then heads (true)

 the store() method

  •  is a private method

  •  stores the result of the coin flips

  •  called by the flipit() method

 

CoinFlip

  • contains a class-level private boolean array
  •  can be used by all the methods of the class
  •  stores the results of 100 coin flips
  • uses at least one for loop and one while loop 
  • counts the number of heads and tails
  • displays the total number of heads and tails
  • reports the longest run of heads

 

TestCoinFlip

 

  •  has a main method
  •  uses only objects of CoinFlip
  •  does not contain any loops nor conditionals

 


This Statistics Assignment has been solved by our Statistics Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.