subject

A bingo card has columns B, I, N, G, O and random numbers in the ranges (1-15, 16-30, 31-45, 46-60, 61- 75) down each column, with a “free” in the centre. Start off by creating the card. Evaluate a card given 20 number calls. Ask the user for whether they want to call “Bingo!” (It is not expected for the game to identify if the player has won.) This is my code pls make it so it is down each column and not row. import java. util. Scanner;
import java. util. Random;

class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System. in);
Random rand = new Random();

System. out. println("B\t|\tI\t|\tN\t|\tG\t|\tO\ t|");
int[][] card = new int [6][6];
int temp;

for (int i = 1; i < card. length; i++) {
temp = rand. nextInt(15)+1;
card[0][i] = temp;
System. out. print(card[0][i] + " \t");
}
System. out. println();

for (int i1 = 1; i1 < card. length; i1++) {
temp = rand. nextInt(15)+14;
card[1][i1] = temp;
System. out. print(card[1][i1] + " \t");
}
System. out. println();

for (int i2 = 1; i2 < card. length; i2++) {
temp = rand. nextInt(15)+ 28;
card[2][i2] = temp;
System. out. print(card[2][i2] + " \t");
}
System. out. println();

for (int i3 = 1; i3 < card. length; i3++) {
temp = rand. nextInt(15)+42;
card[3][i3] = temp;
System. out. print(card[3][i3] + " \t");
}
System. out. println();

for (int i4 = 1; i4 < card. length; i4++) {
temp = rand. nextInt(15)+56;
card[4][i4] = temp;
System. out. print(card[4][i4] + " \t");
}
System. out. println();
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
The most efficient way to establish top best possible economize position is to measure
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
You know the right answer?
A bingo card has columns B, I, N, G, O and random numbers in the ranges (1-15, 16-30, 31-45, 46-60,...
Questions
question
Social Studies, 26.11.2021 02:40
question
Mathematics, 26.11.2021 02:40
question
Social Studies, 26.11.2021 02:40