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

In C language only (not c++)!!!!!!! Write a program that will prompt the user fo

ID: 3604164 • Letter: I

Question

In C language only (not c++)!!!!!!!

Write a program that will prompt the user for the number of players (maximum of 5) prompt the user for the number of cards to generate for each player (maximum of 10) for each card for each player, generate a valid bingo card (5 columns and 5 rows, here are some images of bingo cards provide a menu for the user to select which user/bingo card to display to run a histogram on the bingo cards generated to see how many times each number between 1 and 75 appeared Now that we have our Bingo Cards we should play Bingo!!! Create a program that will: do everything from program 2 (create bingo cards)

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, print their bingo card, 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 ...)

only need option 4 i have the codes for the first part of the project already.

Explanation / Answer

#include<stdio.h>
#include<randomnumber.h>
#include<unusednumbers.h>
#include<conio.h>
#include<globals.h>
int main()
{
int bcard;
char finit,linit,plr1;
printf(("enter finit");
scanf("%d",finit);
printf("enter linit);

scanf("%d",linit);

intRandom();

newcard();

displaycard();

int count;

count=0;

while(i<25){

rand(time(NULL));

bcard=rand()%75+1;

printf("calling first number: %d ",bcard);

if(bcard==mark_value){

printf("**");

i=i+1;

}
}

printf("Thanks");
system(pause");
}

//program for card:

#include<stdio.h>

#define mark_valueue 0

int bingocard[NUMROWS][NUMCOLUMNS];

void newcard(void){

int choice=multiple;

int row,column;

int maximum,minimum;

for(column=0;column<NUMCOLUMNS;column++)

{

minimum=(column*choice)+1;

maximum=(column+1)*choice;

for(row=0;row<NUMROWS;row++)

{

bingocard[(row/2)][(column/2)]=mark_value;

}

void printcell(int cell){

printf("|");

if(cell==mark_value){

printf("**");

else

{

printf("%d",cell);

}

}

void displaycard(void){

int i,j;

printf("bingocard for player1");

printf("+-----------------+ );

printf("|B|I|N|G|O| ");


for(i=0;i<NUMROWS;i++){

for(j=0;j<NUMCOLUMNS;j++){

printcell(bingocard[i][j]);

}

}

}

for generating randomcards:

void initrandom(void){

unsigned int bcard=(unsigned)time(null);

srand(bcard);

}

int myrandom(int low,int high){

return (low+rand()%(high-low+1));

}