Program and Purpose

  • The purpose of this project is to inform users of the stock market and how it works. This would help them in the future or even now if they wanted to consider investing in the stock market.
  • One of the programs that I worked on was the the stock quiz, users would answer questions about different terms used in the stock market. Another feature I worked on is to allow users to input their own stock and a fun fact about it.

Data abstraction

  • The first part of the data abstraction of the quiz is the questions. It gets the questions and the multiple choice options from the quiz to display for the user.
  • The backend data abstraction happens when it get the stock and fun fact from the database that holds the data from the user.

ImageOne ImageThree

  • Another part of the data abstraction is the pulling from the api to the frontend.

ImageThree

ImageThree

Managing complexity

  • Some ways that I manage complexity is implementing a shuffle questions function. This would prevent the user from memorizing where each of the answers are and really testing them on whether or not the users actually know the answer.

ImageTwo

Procedural Abstraction

  • This part calls back the previous function from earlier. It calls out the shuffle questions function from above.

ImageFour

  • The HandleQuestion function is also called upon.

ImageFive

Algorithm Implementation

  • This calculates the score as a percentage based on how many questions the user had answered.

ImageSix

ImageSeven

  • This would also include how it keeps the inputs for the users stock and fact.