java microproject
java microproject
JPR MICROPROJECT
By Roll No.: 52-54 From SYCO(B)
2
MICRO-PROJECT PROPOSAL
• Proposed methodology:
1. To prepare the algorithm for the project.
2. To design the flowchart for the project.
3. To code the project’s program in a code editor.
4. To test and run the program.
5. To prepare the project report.
• Resources Required:
5 An IDE or Code Editor Notepad, Cmd & 1 Used for coding the
Jdk-21 program
4
CERTIFICATE
This is to certify that the Project Report Entitled
Prepare a report on Blood Bank Management System
Under the course: Java Programming (22412)
ACKNOWLEDGEMENT
Firstly, we would like to express our special thanks of gratitude to our
subject teacher Ms. Dimpal Chavan, HOD Ms. Pooja Ahuja and
principal Prof. A. S. Kondekar of Y. B. Patil Polytechnic, Akurdi,
Pune, who gave us the golden opportunity to do this wonderful project
of Java Programming (JPR) on ‘Blood Bank Management System’,
due to which we came to know about so many new things in the field
of computer science and we are really thankful to them for the same.
We also thank them for their able guidance and support in completing
our project.
Secondly, we would also like to extent our gratitude to the Y.B. Patil
Polytechnic, Akurdi, Pune for providing us the facility required.
Lastly, thanks to our group members for co-operating and doing the
team work together.
9
INDEX
Sr. No. Topic name Page No.
4 Abstract 13
11 Conclusion 21
12 References 21
10
5 An IDE or Code Editor Notepad, Cmd & 1 Used for coding the
Jdk-21 program
12
ABSTRACT
In our project based on the topic Blood Bank Management System,
we have created a simple & basic version of Blood Bank Management
system
Step 1: Start
Step 2: Initialize a BloodBank object.
Step 3: Display a menu-driven interface to the user with options:
a. Donate Blood
b. Request Blood
c. Exit
Step 4: If the user chooses to donate blood:
a. Prompt the user to enter their name and blood group.
b. Create a new BloodDonor object with the provided information.
c. Add the donor to the blood bank using the addDonor method.
d. Display a confirmation message.
Step 5: If the user chooses to request blood:
a. Prompt the user to enter the blood group needed.
b. Search through the list of donors in the blood bank for a
matching blood group.
c. If a matching donor is found, display the donor's
information.
d. If no matching donor is found, display a message
indicating unavailability.
Step 6: If the user chooses to exit:
Terminate the program with a farewell message.
Step 7: Repeat steps 3-6 until the user chooses to exit
Step 8: End Program.
16
import java.util.ArrayList;
import java.util.Scanner;
class BloodDonor {
private String name;
private String bloodGroup;
class BloodBank {
private ArrayList<BloodDonor> donors;
public BloodBank() {
donors = new ArrayList<>();
}
switch (choice) {
case 1:
System.out.print("Enter your name: ");
String name = scanner.nextLine();
System.out.print("Enter your blood group: ");
String bloodGroup = scanner.nextLine();
BloodDonor donor = new BloodDonor(name, bloodGroup);
bloodBank.addDonor(donor);
break;
case 2:
System.out.print("Enter the blood group you need: ");
String neededBloodGroup = scanner.nextLine();
bloodBank.requestBlood(neededBloodGroup);
break;
case 3:
running = false;
System.out.println("Exiting... Thank you for using the Blood
Bank System.");
break;
default:
System.out.println("Invalid choice! Please enter a number
between 1 and 3.");
}
}
scanner.close();
}
}
19
1. Critical Thinking
2. Collaboration & teamwork
3. Time management
4. Communication skill
5. Scientific approach development
6. Research skill
7. Leadership skill
8. Presentation of collected data
9. Development of projects
10. Motivation skill
21
CONCLUSION
In this project, we learnt about how to make a Blood Bank System and
executed it successfully
You have also, seen our simple & basic version of Blood Bank System
implemented using Java programming language.
REFERENCES