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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:30, Felixthecat7186
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 3
image
Computers and Technology, 23.06.2019 20:00, boo3972
Match the file formats with the types of multimedia they can store
Answers: 2
image
Computers and Technology, 24.06.2019 02:40, homework1911
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, minecrafter3882
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
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 in other subjects:

Konu
Mathematics, 03.03.2021 20:30
Konu
English, 03.03.2021 20:30
Konu
Mathematics, 03.03.2021 20:30
Konu
Mathematics, 03.03.2021 20:30