Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your program will generate superball box game board. 1. There should be 10(rows) x 10(columns) board which will have 100 slots. You should use two

Your program will generate superball box game board.

1. There should be 10(rows) x 10(columns) board which will have 100 slots. You should use two dimensional ArrayList.

2. Read 20 people's initials (two letters for each name) from file(names.txt) and store their names into ArrayList or LinkedList. You should not have duplicate names.

3. Each person should be assigned to 5 random slots in the board. Each slot can only be assigned with one person. You must use the random method from java.util.Collections object. If the random slot is already occupied by other player, you need to move to next random slot.

4. Generate team 1 scores randomly from 0 through 9 using Collections utility method and store scores in the ArrayList or LinkedList. Do same for team 2 scores. You should not have duplicate numbers for each team scores.

5. Display game board in table format with player's initial for each slot. The team1 scores should be row number and team2 scores should be column headers.

Extra Credit (2) for following:

Ask user to put each quarter scores and system should show the winner for each quater.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions