sorting animation using multi threading

8 questions 8
October 21, 2021
jj cesar chavez discussion and comment on whether you feel that the border situation is improving today and agree or disagree with two other students jj
October 21, 2021

sorting animation using multi threading

Task

Task : Sorting Animation using Multi-threading and JavaFx GUI(10 marks)

Write a multi-threading animation program for selection sort, insertion sort, and bubble sort using JavaFx GUI. Some sample outputs of the program is shown below. Create an array of integers 1,2,…,30 and shuffle the elements of the array randomly. Create a pane to display the array in a histogram. You should invoke each sorting method in a separate thread. Each algorithm uses two nested loops. When the algorithm completes an iteration in the outer loop, put the thread to sleep for 0.8 seconds, and re-display the array in the histogram, color the last bar in the sorted sub-array.

Figure 2a: During sorting operation

Figure 2b: After completion of sorting operation

Note: For further clarification and concerns about the assignment, students are recommended to contact with the subject coordinator.

Rationale

This assessment task will assess the following learning outcome/s:

  • be able to create, manage and manipulate objects via the Java Collections Framework.
  • be able to design and implement multithreaded Java applications.
  • be able to design and construct Java Graphical User Interfaces (GUI) that interact with problem domain objects.
  • be able to create, connect to and update a relational database using the Java Database Connectivity (JDBC).
  • be able to demonstrate the use of the inheritance features of the Java language to design and implement complex object-oriented programs.

Marking criteria and standards

Items Full Marks Pass(PS) Credit(CR) Distinction(DI) High Distinction(HD)
Presentation 1.5 Very basic presentation (no screen shots are included) Report with few screen shots is submitted Report with enough screen shots is submitted Report with enough screen shots is submitted. The discussion on each screen shot is easy to read and understand.
Elements of GUI 2.5

Program is not

running but the

source code

indicates the

correctness

Program is

running but

not showing

the GUI

properly

Program is running

but not showing all

the required

components of the

GUI properly

Program is running and

showing all the required

components of the GUI

properly

Functionality 6

Program is not

running but the

source code

indicates the

correctness

Program is

running but

not working

properly

Program is running

properly but cannot

handle unexpected

inputs/events

Program is running and working properly.

Presentation

Requirements

Following items are to be submitted in the Turnitin (For each task):

  • Report: The report (in .doc or .pdf format) should explain how to run your program and any settings needed to run your program. Enough number of screenshots should be shown in the document. In case if the assignment marker fails to run your program, because of any inconvenience, these screenshots would show how the program worked on your machine/environment.
  • Source code and other files: All source codes, exe file and other relevant files must have to be zipped in a folder such that unzipping would keep the file/folder structure unaffected.
 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.