Professional Documents
Culture Documents
HOMEWORK Lec5-6
HOMEWORK Lec5-6
- 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.
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