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, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
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
Spanish, 29.08.2019 17:30
Questions on the website: 13722363