This program is to facilitate and speed up horse race management
This program is designed using Java and consists of 9 classes according to functionality. javaFX is used to provide a rich user interface.
- Horse details need to be entered initially and then the entered details can be deleted, updated and viewed.
- Then all the entered details can be saved in text files
- After entering and saving all the details we can randomly select 4 total 1 horse from each group.
- After randomly selecting the horses we can select 3 winning horses.
Depending on the functionality of each class, FXML files are used in javaFX From the following instructions we can get a good idea about the functionality of this program.
First all the fields about the horse need to be filled and then it needs to be confirmed.
Then user can delete entered horse details using entered horse ID.
The update horse details functionality can be used if the user wants to update the entered horse details.
User can view entered horse details sorted by horse ID. In this method bubble sorting method was used to sort this.
After entering the information, the entered details can be saved in horse details text files.
There are 4 text files by horse groups and one file for all horse details.
Below are the files where all the details are stored.
How details are stored in the file is as follows
After saving the details in the text files random horses can be selected from the text file.
One choice will be selected from each group
Winners may then be selected from randomly selected horses.
There are 3 winning horses and their location, time and place can be viewed.
A bar graph of winning horses by winning time can also be seen.
- Only 20 horses details can be entered into this program. If you want to increase this value, you can update it inside the code algorithm.
- If you have entered invalid details for the mandatory fields it will alert you by generating a message.
- When entering a horse's name, only the horse's first name should be entered.
- The names of the horses must be different.
From these links, you can watch videos on how to run the program and how it works.
- Youtube -
- Tik tok - https://www.tiktok.com/@hirudika_anupama/video/7387829757083225360?lang=en
- Implementation of program using java.
- Correct handling and use of Java Object Oriented Programming concepts.
- build up rich user interface using javaFX.
- Correctly building a code from scratch.
-
First of all you need to install git and java into your computer.
-
Then open command prompt and select your project installation directory as below code,
cd "At this point you must provide your directory"
Eg : cd desktop -
Then place this code. After executing this code the project is in the selected directory.
git clone https://github.com/HirudikaAnupama/Horse-Racing-Management-System.git
-
You can then run this program using the appropriate IDE.
Eg : IntelliJ IDEA, Eclipse
-
The main class of this program is inside the src folder.
- Author: Hirudika Anupama
- Email: [email protected]
- GitHub: https://github.com/HirudikaAnupama