Final Microproject Format
Final Microproject Format
By
“Soham Parab”
“Aryan Tambe”
ROLL NO:- 19
20
2109640212
SUBJECT INCHARGE
Mrs. Smita Kuldiwar
“Soham Parab”
“Aryan Tambe”
is submitted for
Kuldiwar)
Hospital Management System
By
ARYAN J. 2109640212
TAMBE
SUBJECT INCHARGE
Mrs. Smita Kuldiwar
Vision: -
To provide technically competent and skilled diploma computer
engineers to fulfill the needs of industry and society.
Mission: -
M1:- To provide industry oriented quality education and training.
M2:- To impart and inculcate theoretical and practical knowledge.
M3:- To provide interpersonal skills and social ethics.
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME OUTCOMES
PO7: Life-long learning: Ability to analyze individual needs and engage in updating
in the context of technological changes
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME EDUCATIONAL OBJECTIVES
PEO1: Provide socially responsible, environment friendly solutions to
Computer engineering related broad-based problems adapting professional ethics.
Develop a Hospital Management System Program. Which takes user information as input and
performs operations on it?
Course Outcomes
1. Develop programs using GUI Framework (AWT and Swing).
2. Handle events of AWT and Swings components.
3. Develop programs to handle events in Java programming.
Proposed Methodology
● First, Search the topic for which you want to make a project, and then propose it to the
Subject In charge.
● After finalizing the topic, start gathering the information about your project.
● For Program Execution, write the source code of your program in any suitable IDE.
● Recheck the program with the subject in charge.
● Now, it’s time to make a report of your Selected Project.
Action Plan
Sr. Detail of activity Plan Start Date Plan Finish Date
No.
Subject In-charge
(Mrs.Smita Kuldiwar)
Literature
Hospital management system is a computer system that helps manage the information related to
health care and aids in the job completion of health care providers effectively. They manage the
data related to all departments of healthcare. Hospital management system is a computer system
that helps manage the information related to health care and aids in the job completion of health
care providers effectively. They manage the data related to all departments of healthcare.
Source Code
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
interface Displayablee {
void display();
}
class Person11 {
protected String name;
protected int age;
protected long phno;
public HospitalManagementSystemGUI1() {
setTitle("Hospital Management System");
setSize(400, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
; setLayout(new BorderLayout());
JPanel inputPanel = new JPanel(new GridLayout(4, 2));
add(inputPanel, BorderLayout.NORTH);
patients = new Patientt1[10];
inputPanel.add(new JLabel("Patient name: "));
nameField = new JTextField(20);
inputPanel.add(nameField);
inputPanel.add(new JLabel("Age: "));
ageField = new JTextField(3 );
inputPanel.add(ageField);
inputPanel.add(new JLabel("Phone number: "));
phnoField = new JTextField(15);
inputPanel.add(phnoField);
JButton addPatientButton = new JButton("Add Patient");
add(addPatientButton, BorderLayout.EAST);
JButton displayPatientButton = new JButton("Display Patient");
add(displayPatientButton, BorderLayout.CENTER);
JButton exitButton = new JButton("Exit");
add(exitButton, BorderLayout.WEST);
addPatientButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String name = nameField.getText();
int age = Integer.parseInt(ageField.getText());
long phno = Long.parseLong(phnoField.getText());
patients[currentPatientIndex] = new Patientt1(name, age, phno);
currentPatientIndex++;
nameField.setText("");
ageField.setText("");
phnoField.setText("");
}
});
displayPatientButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (currentPatientIndex > 0) {
String input = JOptionPane.showInputDialog(null, "Enter patient number (1-" +
currentPatientIndex + "):");
int pat_no = Integer.parseInt(input);
if (pat_no >= 1 && pat_no <= currentPatientIndex) {
patients[pat_no - 1].display();
} else {
JOptionPane.showMessageDialog(null, "Invalid patient number!");
}
} else {
JOptionPane.showMessageDialog(null, "No patients added yet!");
}
}
});
exitButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
});
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new
HospitalManagementSystemGUI1().setVisible(true); }
});
}
}
Output
Skill Developed
1. Able to develop Java Programs
2. Able to analyze and fix the errors.
3. Able to debug the program.
Application
Can be used in college and school level programs.
Subject In-charge
(Mrs. Smita Kuldiwar)