Reference no: EM13941772
Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user (assume the user will not input duplicates).
Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.
Create a GUI front end for your bubble sort program. The result should look something like that presented in Figure 1. You may use any graphic element to create your display - JOptionPanes are the easiest and most basic tools available to you, but you may also experiment with additional GUI controls such as JFrames, JPanels, etc. I would advise you to use objects from the Swing library (those objects begin with 'J') as opposed to objects from the AWT library - Swing objects are a little easier to use and are ultimately more flexible and robust than AWT objects.
In the example below, there are 10 text fields on a JFrame background to allow input of array elements (remember that for each text field you must press the carriage return key to invoke the listener). When the array has been populated, we press the start button, at which point the given array is output as a label. We then sort the result and output the sorted array.
Hint: Do not attempt to make the GUI too sophisticated. Just concentrate on producing a working result (although sound programming techniques should still be applied).
Figure 1: Bubble sort GUI (partial example)
Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.
As with all programs I write, I should provide a well-structured solution that is easy to read. I should use meaningful identifier names and I should provide useful comments.
Ferraris of work design
: Edwin Lawler, Management Professor at the University of Southern California, states, "Teams are the Ferraris of work design. They're high performance but high maintenance and expensive." Do you agree? Why or why not?
|
Drawbacks or risks of living in flat world of globalisation
: What would be some of the key drawbacks or risks of living in the flat world of Globalisation 3.0 as Friedman describes it?
|
Creating a gui front end for a pizza ordering program
: Kindly remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Please remember also that by convention, class names commence with a capital letter.
|
Applied or theoretical concept of e-business
: Your essay will address an applied or theoretical concept of e-business.. The suggested length is approximately 3-4 pages
|
Create a gui front end for your bubble sort program
: Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user (assume the user will not input duplicates).
|
Describing the legal and ethical issues tied to the case
: Research an organization that has had a lawsuit filed against them for wrongful termination. Write a 350-word summary describing the legal and ethical issues tied to the case
|
Summary on the importance of employee rights
: Select the best actions to take. Write a 350-word summary on the importance of employee rights
|
How do native americans accept the dawes act
: How do Native Americans accept the Dawes Act? What are their primary issues or complaints concerning the act and what is the final impact of the Dawes Act on Indian populations?
|
Johnstone company manufactures two products
: Johnstone Company manufactures two products, Board 12 and Case 165. Johnstone's overhead costs consist of setting up machines, $1,600,000; machining, $3,600,000; and inspecting, $1,200,000.
|