Initially your program will prompt for the number of trials to simulate (a trial is two coin tosses) on the console (i.e., terminal window), error checking that a positive value is entered. (More details about error checking here.) This part of the program will be console-based, to keep things simpler.
Then it will run the simulation and display a 500 tall by 800 wide pixel window with the results of that simulation. The results will consist of three labeled bars, each a different color, to show how many trials had the specified outcome. The label will show what the outcome was (e.g., Two Heads), the number of trials that had that result, and the percentage of trials that had that result (rounded to the nearest one percent). Because the simulation uses random coin tosses (simulated using a random-number generator) subsequent runs with the same input will produce different results.
Starter Codes will be provided. please read the attaced word document before contacting me.
Hi! Just read your word document. Sounds like you need someone to implement a CoinTossSimulator class along with a bar class that represents the number of coin tosses. There is also a test driver class “CoinTossSimulatorTester” to implement.
I have a background in java and javaFX programming, so I can create a bar graph using javaFX. My instant messenger application is an example of my work in JavaFX.
I can work with you to come up with a great strategy however I have gone through all your documents and I think I have all the details to do this.
If you are interested in working with me, let me know when you’d be available to talk.
Best regards,
David W.