4.8 Coin Flip Simulation Projects Curriculum Page
Remember to provide screenshots with your explanations:
I added enhancements so that the button would be color coded, voice feedback, and text showing below the button on what side it would be. Another enhancement was adding a accelerator block so when shaken it would do the same as the button and flip the coin. I also made it so it used a random fraction instead, and a chance that it would land on the side. The app first starts when you shake or press the button, it grabs the global variable and changes it to a random fraction, if that fraction is less than or equal to 0.2 its sideways, changes the color on the button and changes the text and gives voice feedback. If the number is less than or equal to 0.51 then it is heads and changes the button color, and text and gives voice feedback. If however that number is neither of those then it would become tails and again changes and gives voice feedback.