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 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
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
Computers and Technology, 20.11.2020 01:20
question
Health, 20.11.2020 01:20
question
Mathematics, 20.11.2020 01:20
question
Mathematics, 20.11.2020 01:20
question
Mathematics, 20.11.2020 01:20
question
English, 20.11.2020 01:20
Questions on the website: 13722363