Skip to content

adeloaleman/JavaDesktopApp-StockMarketSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Desktop App - Stock Market Simulator

In this project, we have created a GUI Java (Swing) Application that simulates a trading day of a simplified model of a stock market:



Trading Day Simulation:
  • To be able to perform the simulation, the system first creates a number of companies with random values of «number of shares» and «share price». Then, we create a number of Investors with a random «budget».
  • The simulator follows these rules:
  • If a company sells 10 shares, the share price doubles up.
  • If any 10 shares are sold (from any company), and a company hasn't sold any, the price reduces in half.
  • Investors can do as many transactions as they like, but must buy only one share per transaction. Investors must try to buy shares in as many possible companies to guarantee the safety of their investment.
  • The simulator stops when all shares have been sold, or all investors have spent all their money.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages