Question: C sharp please Write a static method named FlipCoin in the Program class that returns a random FlipState value. FlipState is an enumeration that has
C sharp please
Write a static method named FlipCoin in the Program class that returns a random FlipState value. FlipState is an enumeration that has members named None, Head, and Tail. Use this method to simulate the flipping of a coin, and count the number of heads and tails.
Move the static FlipCoin method to a class named Coin. Test the method.
Rename the FlipCoin method to Flip. Test the method.
Modify the Coin class to include a public static field named FlipState of type FlipState that stores the result of a flip of the coin. The Flip method for this modified Coin class should not return a value. Instead, the Flip method should set the FlipState field to whatever value the Flip method produces. Test the modified class in a program.
Enclose the Coin class in a namespace named Games. Test the method.
Create a class library for the Coin class named Games.dll. Use the class library and test the Coin class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
