top of page

ALGORITHMS AND DATA STRUCTURES, Sample Work

In this blog, we will be solving assignments based on an algorithm and data structures.


Assignment Brief

You are required to develop a Java program with a graphical user interface (GUI) to render

2D objects based on user input, visualize some transiSons between states, and demonstrate

how you’ve preserved states between transiSons. You must use JavaFX to implement the

GUI components.

The program should have the following functionality:

1. An interacSve component which has the following acSons associated with it; the

component can accept user input, where assuming the input is valid, a shape will be

displayed on the main screen. The program should accept the following shapes as input:

triangle, rectangle, hexagon.

1.1. You need to ensure that the user input is validated, and feedback is given when

invalid input is entered.

1.2. The program should only allow the user to enter one valid shape at a Sme.

1.3. The main screen should only display one shape at a Sme.

2. An interacSve component which has the following acSons associated to it; the

component can accept user input, where assuming the input is valid, the currently

displayed shape will be filled using the color of the valid input. The program should

accept the following colors as input: red, green, grey.

2.1. You need to ensure that the user input is validated, and feedback is given when

invalid input is entered.

2.2. The program should only allow the user to enter one valid color at a Sme.

2.3. The currently displayed shape should only be filled with one colour at a Sme.

3. Any potenSal error states should not crash the program or generate generic error

messages. The program should clearly indicate to the user that an error has occurred,

with specific informaSon on why the error occurred and what valid acSon(s) are

available.


Assessment Tasks

Given the brief stated above, your tasks are as follows:

1. implementation: Create a class called Shapes. Implement the funcSonality from the

brief stated above, ensuring that you have covered all points.

2. FuncIonality/TesIng: Show evidence that ALL the methods in the Shapes class and the opSons in the GUI have been individually tested and that the Shapes class can be

compiled and run from the command line. You need to ensure that all images are

readable at default/100% zoom.


Contact Codersarts for any such project/assignment help
Codersarts is a top-rated website for students which is looking for online Programming Assignment Help, Homework Help, Coursework Help in C, C++, Java, Python, Database, Data structure, Algorithms, Final year project, Android, Web, C sharp, ASP NET to students at all levels whether it is school, college and university level Coursework Help or Real-time project. Hire us and Get your projects done by a computer science expert.


bottom of page