Question: you will create a command line program that sends an alert of your user's stock portfolio. You must follow the principle of TDD in this

you will create a command line program that sends an alert of your user's stock portfolio. You must follow the principle of TDD in this project.

The user will be able to perform the following actions in your app. You can use command line arguments for this.

  1. User must be able to save a portfolio of stocks and be able to add and remove stocks from the portfolio.
  2. User must be able to get the current total value of the portfolio.
  3. User must be able to get the portfolio and the current value as an alert (text message, email, Twitter, etc.)

Here are some guidelines for the project.

  • You must follow the principles of TDD.
  • Use AAA (Arrange-Act-Assert) style of testing
  • Use annotations such as @BeforeClass, @AfterClass, @Before, @After, etc
  • You may choose any data format when storing data, e.g. JSON, XML, CSV, TSV, ProtoBuf, etc
  • Do not store your data in a database or binary file format
  • You may use the YahooFinanceAPI library to download the price of stocks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!