Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please in C language only! Now that we have our Bingo Cards we should play Bingo

ID: 3605151 • Letter: P

Question

Please in C language only!

Now that we have our Bingo Cards we should play Bingo!!! Create a program that will: do everything from program 2 (create bingo cards), if you didn't get this working just right go see TAs/professor As Soon As Possible Add an option 4 to your menu for Play Bingo read in a bingo call (e,g, B6, I17, G57, G65) checks to see if the bingo call read in is valid (i.e., G65 is not valid) marks all the boards that have the bingo call checks to see if there is a winner, for our purposes winning means 5 tokens in a row or column 5 tokens in a diagonal 1 token in each of the 4 corners of the game board Loop accepting bingo calls until there is a winner, and display an appropriate message specifying which user won, and how they won (5 in a row with calls B6, I20, ...; 5 in a column with calls ...; 5 on a diagonal with calls ... ; 4 corners with calls ...)

mainly need option 4.

Explanation / Answer

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

main()

{

int bingocard[5][5];

int r,c;

int n=15;

randomize();

clrscr();

for(r=0;r<5;r++)

{

for(c=0;c<5;c++)

{

bingocard[r][c]=rand()%num+1;

}

}

for(r=0;r<5;r++)

{

for(c=0;c<5;c++)

{

print("%d ",bingocard[r][c]);

}

}

}