Question: C program. Bingo cage Purpose: How to use an array and the array indices. How to generate random number and how to use it. e

C program.

C program. Bingo cage Purpose: How to use an array and the

Bingo cage Purpose: How to use an array and the array indices. How to generate random number and how to use it. e . Task: Write a program in C that simulates a random mini Bingo cage spinning that contains balls 1 to 9. After the cage stops spinning only one ball will come out. That ball is put back in the cage for the next round of spin. Your program should simulate a completely random selection for the balls 1 to 9, and the frequency of each ball that appears. The cage will spin for 100 times Your program has to use an array (one dimensional) to contain the balls from 1 to 9 Your program should print the result in a tabular format, and at the end of each line print the histogram for that particular ball that appears within 100 times of spinning the cage. . Note: Your output should look similar to the table below: Ball Frequency Histogram 13 18 12 12 10 9 10 17 9

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 Databases Questions!