Question: Usinging Java Write a program named CheckBoard.java. The checkerboard class will create and display a checkerboard using a two-dimensional array. One damson will represent the

Usinging Java

Write a program named CheckBoard.java. The checkerboard class will create and display a checkerboard using a two-dimensional array. One damson will represent the x axis and the other will represent the y axis. The CheckerBoard.java class will extend JFrame and use the paint (Graphics g) method to create the different squares. Each square will be either black or white depending on its location. For example, the colors will alternate black and white until each row and column is colored.

Write a class Movies.java that reads in a movie list file (movies.txt). The file must contain the following fields: name, genre, and time. Provide the user with the options to sort on each field. Allow the user to continue to sort the list until they enter the exit option.

Write two sorting classes, BubbleSort.java and InsertionSort.java (use the examples in the book on pages 442 and 448). Print out a statement each time the algorithm performs an evaluation. Then create TestSort.java that will use the same array of elements for both BubbleSort.java and InsertionSort.java.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!