Question: Problem 1 : Coin Tossing Simulation Write a program that simulates a coin tossing process. Let the program in main ( ) fu nction prompt

Problem 1: Coin Tossing Simulation
Write a program that simulates a coin tossing process. Let the program in main() fu nction prompt the user
to enter the number of tosses N and count the number of times each side of the coin appears. The main()
should call a separate function called fio () that takes no argu ments and returns 0 for tails and 1 for heads.
For your conven ience, the fun ction prototype is given below.
Function prototype: int flip( void );
Sample input / output:
Enter number of tosses N: 1000
The total number of Heads are 510
The total number of Talls are 490
write it using c++
Problem 1 : Coin Tossing Simulation Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!