Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can some one write this bingo game in java pseudocode? Assignment: Design and im

ID: 655665 • Letter: C

Question

Can some one write this bingo game in java pseudocode?

Assignment: Design and implement a "BINGO" game , the classic kind or any variation of the game.

Requirements:

1.   You must use AT LEAST 1 randomly generated BINGO CARD; if you are feeling adventurous, try more than 1.

2.   Look at some sample code I provided to help you. Google it as well and you will find plenty of sample code. Essentially, create a JFrame with JPanels to organize your collection of graphics objects. Fill your panels with JButtons or JLabels for the bingo cells. Have a current bingo ball section (maybe a label or a text section) that changes every time the

Explanation / Answer

public int draw()

{

    Random ran = new Random();

    int temp = ran.nextInt(65)+1;

    return temp;

}

public static void bingo()

{

    int [][]card=new int [6][6];

    ArrayList<Int> already = new ArrayList<Int>();

    bool valid = false;

    int tmp = 0;

    for(int k = 0; k <= 4; k++)

    {

        for(int row = 0; row < card.len; row++)

        {

            while(!valid)

            {

                tmp = (int)(Math.ran() * 15) + 1 + 15 * i;

                if(!already.contain(tmp))

                {

                    valid = true;

                    already.add(tmp);

                }

            }

            card[row][k] = tmp;

            valid = false;

        }

    }

    card[3][3] = 0;

    String topic [] = {"B","I","N","G","O"};

    for(int k=0;k<topic.len;k++)

    {

        System.out.print(topic[k]+ " ");

    }

    System.out.println();

    for(int row=0;row<card.len;row++)

   {

        for(int col=0;col<card[row].len;col++)

        {

            System.out.print(card[row][col]+ " ");

        }

        System.out.println();

    }

}