Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)