Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 3.52 KB

README.md

File metadata and controls

30 lines (26 loc) · 3.52 KB

Blood Donation App by Java OOP

Introducing

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.


Requirement

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

Features

  1. Add a donor to the center if he/she is not already in the donors list.
  2. For each donor, list the ideal blood donation types based on the donor’s blood type.
  3. For each donor, determine whether the donor is capable for a new donation based on:
    1. the most recent donation date among all his/her past donations records
    2. 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.
  4. you can Add a blood donation for a donor's data is correct in time frame with respect to his/her past donation records
  5. 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.

Environment

Netbeans 8.2

GUI

Yub it's look girly bit 🤷🏻‍♀️ 🥴

Screen Shot 2021-06-24 at 10 35 52 PM