Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Lecture 5

- Possible non-functional requirements:


a) Between 0600 and 2300 in any one day, the total system down time should not exceed 5
minutes.
b) Between 0600 and 2300 in any one day, the recovery time after a system failure should not
exceed2minutes.
c) Between 2300 and 0600 in any one day, the total system down time should not exceed 20
minutes.
All these are availability requirements. Failures when most people are traveling are less
acceptable than failures when there are few customers.
d) After the customer presses a button on the machine, the display should be updated within 0.5
seconds.
e) The ticket issuing time after credit card validation has been received should not exceed 10
seconds.
f) When validating credit cards, the display should provide a status message for customers
indicating that activity is taking place. This tells the customer that the potentially time
consuming activity of validation is still in progress and that the system has not simply failed.
g) The maximum acceptable failure rate for ticket issue requests is 1: 10000.

- An unattended petrol (gas) pump system that includes a credit card reader. The
customer swipes the card through the reader then specifies the amount of fuel
required. The fuel is delivered and the customer’s account debited.
The unattended petrol pump should offer fuel 24 hours a day without assistance. The pump has a
built-in credit card reader to accept payment for fuel from customers, and does not accept cash.
To obtain fuel, the user must first swipe their credit card in the credit card reader. The credit card
reader must then authorize the user’s card – if the card is invalid or otherwise not authorized, the
card is rejected and an error message is displayed to the user, and the user will either attempt to
reauthorize or cancel; else, if the card is authorized, the user may continue to purchase fuel. After
the card is authorized, the user enters how much fuel they would like to purchase. The user then
places the pump in their vehicle and the pump begins to dispense their fuel. Upon dispensing the
amount of fuel specified by the customer, the pump stops and the user must return the pump
handle back to the pump. After the user returns the pump handle, the pump calculates a total cost
for the actual fuel dispensed, and debits the user’s account for the cost of the fuel.

- The cash-dispensing function in a bank ATM.


The ATM must offer services to customers 24 hours a day. When not in active use, the ATM
displays a message for a user to insert their card into a card reader. When a user approaches, they
are greeted by this message. Service is initiated when a user inserts their card into the card
reader. When a card is inserted into the card reader, the ATM reads the account information and
requests that the user authenticates by inputting their account PIN into the number panel on the
ATM. If the user enters an invalid password, the authentication fails and they are asked to reenter
their PIN. The user will have a maximum of five chances to enter a correct PIN; failure to input a
correct PIN in five tries will lead to the account being locked from further use. If the user enters
a correct PIN, the system authenticates and the user is presented a menu on screen offering
services available to the user. The user must select withdrawal from the menu to withdraw funds.
After the user selects withdrawal, the menu asks the user from which account they would like to
withdraw funds – if multiple accounts are available, the user will have multiple selections; if the
user only has one account, that will be the only available selection. After the user selects their
account, the menu asks the user to enter the amount of the withdrawal. The user then enters the
amount of money they wish to withdraw. After the user enters an amount, the system will check
the user’s account balance to ensure there are enough available funds to withdraw – if funds are
insufficient, the user is notified on-screen, and asked to enter a different amount or cancel the
transaction. If there are sufficient funds available, the amount is debited from the user’s account.
The system then advises the user of their current remaining balance, and funds are dispensed to
the user. The user is then asked if they would like a receipt of the transaction. If the user
indicates they would like a receipt, a receipt is printed; otherwise, the system asks if the user
would like to initiate another transaction – if the user selects yes, the menu returns to the services
menu for the customer to make another selection; if the user selects no, the card is returned to the
user and the current service session is closed. The menu screen returns to the splash screen
asking a user to insert their card.

- The spelling-check and correcting function in a word processor.


When using a word processing program, the user types a document. When the user completes
this document, they must invoke the spell-checking function of the word processor. Upon
invoking the function, the spell checker scans each word of the document by parsing the
document, using whitespace as a delineator. While parsing, the spell checker attempts to match
each word found against the installed dictionary. If the current word is not found in the
dictionary, the word is flagged and added to the list of words for correction; else, no action is
taken and the checker moves to the next word. Upon completion of the scan, if no words were
found, the checker advises the user that no words were found for correction; else, the spell
checker presents the list of found words to the user for correction, and each word found will have
suggested words based on dictionary entries similar to the word entered. The user may then
correct the found words and attempt the scan again, or simply close the spell checker.

LEC 6
Q. Who are Stakeholders in the MHC-PMS?
Stakehjolders in the MHC-PMS the hospital thingy.
- Doctors who are responsible for assessing and treating patients
- Nurses who coordinate the consultations with doctors and administer some treatments
- Medical receptionists who manage patients’ appointments.
- IT staff who are responsible for installing and maintaining the system.
- A medical ethics manager who must ensure that the system meets current ethical
guidelines for patient care
- Health care managers who obtain management information from the system.
- Medical records staff who are responsible for ensuring that system information can be
maintained and preserved, and that record keeping procedures have been properly
implemented

The non-functional requirements are very important. These relate to the replication of data of the
entire system, to the individual machines. Keeping the data consistent and congruent in the entire
system would be one of the top goals of the system, as redundancies and omissions could be
highly likely in a distributed enviroment
Customer

ATM

Invalid
PIN

Transaction

Bank System

Transfer Inquiry
withdraw

Report

Insert cash
Maintenance
Programming Exercises:

- Modify JRadioButton Program Java How to Program Book so that the frame has two more radio
button for font size: big (default) and small to decide the font size of the text displayed in the
text field.
- Modify JList Demo Program on Java How to Program Book so that the program display a list of
Troy CS16 students. When user choose one item, the photo and brief information (Name,
BirthDate) will be displayed

You might also like