ffm5113 / cpp_coin_toss_payout_simulator Goto Github PK
View Code? Open in Web Editor NEWThe Coin Toss Payout Simulator Program (C++) creates 10 simulations for a coin toss payout game, where the payout equals 2 raised to the nth power, and n is the number of flips required before the 1st instance of heads (H) is recorded. The sequence of results, payouts, and average payout are printed to the console in table format.
License: MIT License