Sunday 20 August 2017

java example questions




Build a program which should have two classes Patient and Client. Both of the classes should be in package ACP.Patient .Patient class should have following data members and Functionalities

Data members:
Patient Name

Father name
Date of birth (Date)
Patient ID (Number)
Disease Category (Heart, ENT, Diabetic, Brain, Orthopedic, General)
NIC (String)
Doctor Name
Prescription
Disease History

Functionalities:
setPatientInformation
updatePrescriptionDiseaseHistory
updatePatientInfo
deletePatientInfo
Search and View Patient record by
Patient ID
Patient Name
Patient Age
Disease Category
Doctor Name
Client class should have main function where it may have capacity of maximum 50 Patient records.
User should be given choice whether to
Add New Patient record
Update Prescription & Disease History
Update Patient Information
Delete Patient Record
Search & view Patient
            BY Patient ID
            By Patient Name
            By Age
            By Disease Category
            By Doctor Name
Choices may be taken by using Input Message dialogs.


0 comments: