I'm so new to arrays, I've read, I've made boxes...and yet I'm still clueless. So my task is to make a bingo card, so far I've made one column of numbers that don't repeat...something I'm very proud of, but to do that same thing with different ranges for 4 more columns with bingo across the top...that's where i get lost. B column range is 1-15, I 16-30, N 31-45...with a free spot in location [2,3] G 46-60, and O 60-75. so far this is wat I hav
thanx so much to anyone willing to help!!
#include <iostream>
//put additional include lines here as needed
//include <packageName>
using namespace std;
int cardNums(int array[5][5])
char bingoGrid(char bingoCard[5])
{
char bingoCard[5] {'B', 'I', 'N','G', 'O' }
{
int array[6][5];
for(int i = 0 ;i < 15 ; i++)
array[i] = 0;
srand((unsigned)time(0));
int random_integer;
int lowest=1, highest=15;
int range=(highest-lowest)+1;
for(int index=0; index<5;)
{
random_integer = lowest+rand()/(RAND_MAX/(highest-lowest) + 1);
if(array[random_integer-1] == 0)
{
array[random_integer-1] = 1;
cout << random_integer << endl;
index++;
}
}
}
}
int main()
{
char bingoGrid(bingoCard)endl;
int cardNums(array [5][5])endl;
return 0;
}