NOTE: C++ IN MICROSOFT VISUAL STUDIO
Write a program that has a function prototype before main and an implementation of the function after main.
The function to be implemented is a coin toss simulation using the random number generator.
The function should return 1 or true 50% of the time and 0 or false 50% of the time. Use srand and the system time to make the program run differently each time.
(srand(time(NULL));). Keep track of the number of head and tails for 10, 100, 1000, 10,000, 100,000 and 1,000,000 trials.
Output the number of heads and tails and number of each as a percentage of the total. Notice that the more trials the more accurate your simulation becomes.