Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions