here is the Blood Donation app which i create it by using oop java for M251 assignment project There are different types of blood donations including whole blood, power red cell, platelet, and plasma donations. In the blood collection center, the details of donors are stored to be contacted whenever a requirement of blood is needed.
First Phase | Second Phase | Third Phase |
---|---|---|
Create a separate class each in a .java file to represent a blood collection center, a donor, a blood donation. | A method to restore the saved content back into an appropriate Java data structure for the next run time | Create GUI (Graphical User Interface) application. |
The blood collection center has a name and a list of eligible donors. | A method to save the content of the created Java structure into a text file. | Design window by using a minimum of four different user interface controls labels, text field, buttons, text area |
Each donor has a name, blood type , contact number and also has a single list to keep track of all they blood donations’ types at specific dates. Initially the list is empty. | create an Exceptions which are basically derived classes of Exception and class that defines a duplicate exception. | Exceptions which are basically derived classes of Exception. Write a class that defines a duplicate exception |
- Add a donor to the center if he/she is not already in the donors list.
- For each donor, list the ideal blood donation types based on the donor’s blood type.
- For each donor, determine whether the donor is capable for a new donation based on:
- the most recent donation date among all his/her past donations records
- the given waiting period constraints in each respective blood donation type and the total number of donations given by him/her during the last year.
- you can Add a blood donation for a donor's data is correct in time frame with respect to his/her past donation records
- you can check and save the center structure into text file include center name and donors list which shows their blood donations details along with a status field that shows whether the donor is capable for a new blood donation or not.
Netbeans 8.2