Method

Description

Critical Questions Associated with This Method

public Wallet(double start)

This method starts the value of the wallet while also setting the start value to the double value “Cash”. The amount of money allocated to spend per day (spMoney) and the amount of money avaible to spend per stack (avMoney) is run through a series of calculations.

Q.1

public void setStartDayValue()

Public method that sets the start day value of the wallet.

Q.1

public double getStartDayValue()

Public double method to get the start day value of the wallet.

Q.1

public double getCurrentValue()

Public double method to get current value of the wallet. The current value is then returned.

Q.1

public String getDailyReturn()

This String method returns the daily return within the wallet which is how much money you have successfully made in the same day. The daily return is current value subtracted by the start day value.

Q.1

public double getCash()

Public double method to return the amount of cash within the wallet.

Q.1

public void setCash(double c)

Public void method which sets the amounts of cash.

Q.1

public double getStartValue()

Public double method that returns the start value within the wallet

Q.1

public double getAnnualReturn()

Public double method that will return the annual value which is calculated by account value divided by start value raised to the (365/1), thus the number of days in a year divided by the number of days since account started.

Q.1

public double getAccountValue()

Public double method that returns the account value which is calculated by adding the cash to the market value of the stock.

Q.1

public void setMarketValue(double mv)

Public void method that sets the market value. This market value is expecting a double.

Q.1

public double getMarketValue()

Public double method that returns the market value.

Q.1

public double getSP()

Public double method to return spending money per day

Q.1

public void setSP(double s)

Public void method to set spending money per day.

Q.1

public double getAV()

Public double method that returns the amount of money to spend per transaction when buying

Q.1

public void setAV(double d)

Public void method to set the amount of money to spend per buy transaction,

Q.1