Skip to content

Instantly share code, notes, and snippets.

@dbramucci
Last active February 21, 2017 03:26
Show Gist options
  • Save dbramucci/93cba2e5f4ea05a4da29171ffdd0dfaa to your computer and use it in GitHub Desktop.
Save dbramucci/93cba2e5f4ea05a4da29171ffdd0dfaa to your computer and use it in GitHub Desktop.
Rough outline on interface

Main Menu

  • int ShowMainMenu()

Manage Account Funds

  • double AddFunds()
    • Ask user for how many funds to add
  • double WithdrawFunds()
    • Ask user for how many funds to withdraw
    • void InsufficientFundsToWithdraw()
      • Display message when they don't have enough money to withdraw funds

Create Portfolio

  • string AskForNewPortfolioName()
    • Asks user for a new name
    • void NameAlreadyExists()
      • Tell user name already existed and can't be added
    • void TooManyPortfolios()
      • Tell user there are too many portfolios to add a new portfolio

Delete Portfolio

  • string AskForPortfolioToDelete()
    • Asks user for a new name
    • void NameDoesntExist()
      • Tell user no portfolio of that name exists
    • void TooFewPortfolios()
      • Tell user there are no portfolios

Portfolio Manage

  • string AskForPortfolioName()
    • Find out what portfolio they'll use
    • void NameDoesntExist()
      • Tell user that portfolio doesn't exist
    • void PortfolioReport(string report)
      • We'll need to talk about this one
    • string StockToBuy()
      • Find out what stock they'll buy
      • void StockNameDoesntExist()
        • Tell user they picked a nonexistant stock
      • int NumberOfStocks()
        • Find out how many stocks to buy
        • void InsufficientFunds()
          • Tell the user there aren't enough funds to buy stock
      • string StockToSell()
        • Find out what stock they'll buy
        • void StockNameDoesntExist()
          • Tell user they picked a nonexistant stock
        • int NumberOfStocks()
          • Find out how many stocks to sell
          • void InsufficientStockss()
            • Tell the user there aren't enough stocks to sell

Account Report

  • void ShowAccountReport(string report)

Quit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment