Wednesday, September 4, 2013

Book Exercises #3

    Chapter 4 is about requirements specification.

4.5 (these are examples of one function that these systems are expected to perform)

  • Petrol gas pump with card reader. 
    • The user expects the system to cease pumping the fuel whenever the amount specified is reached. 
  • The cash-dispensing function in a bank ATM. 
    • When a user touches the button containing the specified amount of money they need, the ATM's cash-dispenser should give out that amount of money.
  • The spelling-check function in a word processor. 
    • When a user spells a word wrong within the context of their sentence, the system should recognize this error and alert the user. This alert can be done by making underlining the word, or automatically changing the word to the correct one. 
4.6 
    To keep track of the relationships between functional and non-functional requirements, a software engineer can create a requirements document. In the system requirements specification section, they can specify the both the functional and non-functional requirements. Defining both in the same section will also define their relationship. The software engineer could also draw a simple diagram linking non-functional requirements with their corresponding functional requirement. 

4.7 

    Withdraw allows account holder to get money from their personal accounts at any location an ATM is present. The user initiates this transaction by inserting their debit card into the ATM . Then, they verify their credentials on the system by entering their pin. The user then species which account they would like to take the money from. The user then specifies the amount of money they would like to take out. The system then dispenses this amount. The last thing the system does in this particular transaction is asks if the user wants a receipt to keep track of the transaction.

   Actors:
  • Account Holder
  • Bank

   Other possible use cases:
  • Transfer money between accounts
  • Deposit money into account
  • Inquire about an account








No comments:

Post a Comment