Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sondosaabed/stock-market
Stock Market application using queues, stacks as data Structure. Java | JavaFX
https://github.com/sondosaabed/stock-market
data-structures java javafx-application queue stack stock-market
Last synced: about 1 month ago
JSON representation
Stock Market application using queues, stacks as data Structure. Java | JavaFX
- Host: GitHub
- URL: https://github.com/sondosaabed/stock-market
- Owner: sondosaabed
- Created: 2022-03-06T08:23:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T19:43:53.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T15:40:39.351Z (3 months ago)
- Topics: data-structures, java, javafx-application, queue, stack, stock-market
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stock Market
in this Java desktop project I have created GUI as list of buttons that user can chose from.
The progress of the operation will be updated on a progress label.
I also made it to input two files .txt and based on the files it saves the daily prices and the users stock shares.
The user is going to chose on radio buttons on what base they could work on their shares (accounting principle) either First in first out (FIFO) as Queue data structure, or Last in first out (FILO) as Stack data structure.
The operations "button" chosen will operate based on the 2 radio button user choices.
And the program will calculate the capital gain for the sessoion, and enable the user to buy and sell shares, also to view their shares and the daily prices.# Running the project
In order to run the project, needs the JavaFx library to be build on the projecet path.# File format example
The inputs file of the program is .txt and this is it's format
Daily prices:![0](https://user-images.githubusercontent.com/65151701/156915147-1055db66-c9f3-4bde-ba3f-4a6fe2d66a50.png)
Stock Shares:
![01](https://user-images.githubusercontent.com/65151701/156915153-a95ccdf9-9b4b-48a3-ae80-2cc486b009fd.png)
# Programms versions
javafx.version=17.0.1,
Java.version=17.0.8# Interface screenshot:
Home:![1](https://user-images.githubusercontent.com/65151701/156915156-161744fc-d6fa-48ae-a0d4-4d52e895d4b3.png)
Show daily prices:
![2](https://user-images.githubusercontent.com/65151701/156915158-59b18f08-ab93-4dec-be65-9de57ebb7b37.png)
Buy new shares:
![5](https://user-images.githubusercontent.com/65151701/156915187-2226f752-06ea-4e79-91c2-15d1c402a5de.png)
Show user their shares:
![4](https://user-images.githubusercontent.com/65151701/156915171-7a43f52a-1a5c-4c92-a0d9-2436e22b6ed6.png)
Calculate capital gain:
![6](https://user-images.githubusercontent.com/65151701/156915191-f68de664-f036-468b-a01c-4d8d9ec57f7f.png)