0% found this document useful (0 votes)
71 views17 pages

Vidya Pratishthan'S Polytechnic College, Indapur A: Academic Year: 2021-2022 Semester: Third Semester

This document contains a C++ program for a Laboratory Management System. The program uses classes, objects, arrays, functions and loops to store and manage patient data including ID, name, test details, and reports. The main menu allows the user to edit, search, delete patient records or exit. Search can be done by ID or name. The program reads and writes data to an external file for storage.

Uploaded by

SHRUTI P. TONDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views17 pages

Vidya Pratishthan'S Polytechnic College, Indapur A: Academic Year: 2021-2022 Semester: Third Semester

This document contains a C++ program for a Laboratory Management System. The program uses classes, objects, arrays, functions and loops to store and manage patient data including ID, name, test details, and reports. The main menu allows the user to edit, search, delete patient records or exit. Search can be done by ID or name. The program reads and writes data to an external file for storage.

Uploaded by

SHRUTI P. TONDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

VIDYA PRATISHTHAN’S POLYTECHNIC COLLEGE,


INDAPUR
A

Report
on

MICRO PROJECT
Academic year: 2021-2022
Semester: third semester

TITLE OF PROJECT

Laboratory Management System

Program: computer engineering


Program code: CO3I
Course: Object Oriented Programming Using C++
Course code:22316
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate

This is to certify that Mr. /Ms. Yadav Tejaswini Ramakrishna,


Yewale Aditi Mohan, Jadhav Ankita Shahaji. Roll No. 11,15,21 of
third Semester of Diploma in computer engineering of Institute,
Vidya Pratishthan’s Polytechnic College, Indapur (Institute Code:
1110) has completed the Micro Project satisfactorily in the Course
of Object Oriented Programming using C++ (Course Code: 22316)
for the academic year 2021- 2022 as prescribed in the curriculum.

Place: Indapur Enrollment No: ……………………………………

Date: ……………………… Exam. Seat no.: …………………………………….

Project Guide Head of the Department Principal


Group Details

Sr. Roll
Enrollment No Names of group members Exam Seat No
No No

1. 11 - Tejaswini Ramkrishna Yadav -

2. 15 - Aditi Mohan Yewale -

3. 21 - Ankita Shahaji Jadhav -

Name of Guide: Kawade Ma’am.

INDEX
SR.
CONTENT PAGE NO.
NO.

1 Title of Micro-Project 5

2 Brief Introduction 5

3 Course Outcomes Addressed 5

4 Actual Procedure Followed 6

5 Action Plan 7&8

6 Actual Resources Used 9

7 C program 10 to 15

8 output of program 16

9 Outputs of the Micro-Projects 16


Part A
Micro-Project Proposal

Title of Micro-Project: - Laboratory Management


System

1.0 Brief Introduction: -


In this project we created C++ program for laboratory
management system.

2.0Aim of Micro-Project:-

1. To create laboratory management system by using


C++ language
2. Implement C++ program by using turboc++ software
to create laboratory management system.

3.0 Course Outcomes Addressed:-

1. We used classes, objects, array, functions, loops,


structures to create c++ program for laboratory
management system.
Actual procedure Followed:-

1. First we learn about object oriented program using


C++ .
2. We collect information of different sources (Books,
Internet).
3. We analyze the collected data and generate useful
information for it.
4. Then we created c++ program to create laboratory
management system.
5. Then we run the program in Turbo c++ software.
6. And prepare the micro project report.
7. Prepare presentation.
Action Plan: -

Planned Name of
Sr. Planned
Details of activity Finish Responsible
No. Start date
date Team Members
Collect data from
1 Different Sources Tejaswini yadav
(books/internet/etc.)
Collect data from
2 Different Sources Aditi Yewale
(books/internet/etc.)
Analysis of the
collected data & to
3
generate useful Ankita jadhav
information from it.
Prepare required
drawings and detailed
4 Tejaswini yadav
plan for execution of
the work.
Present generated
5 information visually in
Aditi Yewale
the form of appropriate
chart/graph.
Present generated
6 information visually in Ankita jadhav
Planned Name of
Sr. Planned
Details of activity Finish Responsible
No. Start date
date Team Members
the form of appropriate
chart/graph.

Prepare the report of


7 Tejaswini yadav
Micro project
Prepare presentations
8 All members
of micro project
Actual Resources Used: -

Name of
Sr.No
Resource/ Specifications Remark
.
Material
1
Internet For collecting info.

2 Turbo c++ To run C program


C program:

#include <iostream>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<fstream>
#include<iomanip>
using namespace std;
/*
PATIENT CLASS
*/
class patient{
private:
char f_name[10],m_test[20],c_report[30];
int id;
public:
char name[10];
/*
CONSTRUCTOR
*/
patient()
{
strcpy(name,NULL);
strcpy(f_name,NULL);
strcpy(m_test,NULL);
strcpy(c_report,NULL);
id=0;
}
/*
EDITING FUNTION
*/
void edit(int i)
{ id=i;
cout<<"\t\tEnter Data About Patient\n";
cout<<"\nPatient ID number is: "<<id;
cout<<"\nEnter the name of patient: ";
cin>>name;
cout<<"\nEnter father name of patient: ";
cin>>f_name;
cout<<"\nEnter name of medical test: ";
cin>>m_test;
cout<<"\nEnter patient complete report: ";
cin>>c_report;
}
/*
DISPLAY FUNTION
*/
void show(int i)
{ id=i;
cout<<"\n\t\tPatient Detail\n";
cout<<"\nPatient ID no is: "<<i;
cout<<"\nPatient name is: "<<name;
cout<<"\nPatient father name is: "<<f_name;
cout<<"\nPatient Medical test name is: "<<m_test;
cout<<"\nPatient Complete report: "<<c_report;
}
/*

DELETE FUNTION
*/
void delet(int i)
{
id=i;
strcpy(name,"deleted...");
strcpy(f_name,"deleted...");
strcpy(m_test,"deleted...");
strcpy(c_report,"deleted...");
cout<<"\n\nRecord of patient with ID no "<<id<<" has ben deleted.";
cout<<"\n\nName: "<<name;
cout<<"\nFather name: "<<f_name;
cout<<"\nMedical test: "<<m_test;
cout<<"\nComplete Report: "<<c_report;
strcpy(name,NULL);
strcpy(f_name,NULL);
strcpy(m_test,NULL);
strcpy(c_report,NULL);
id=0;
}
};
void delete_patient();
void creat_data();
void pass();
void intro();
/*
MAIN FUNTION
*/
int main()
{
intro();
pass();
int choice,i1;
char m,q;
patient a[500];
a://();
cout<<"\t\tSELECT A MODE\n\n";
cout<<"\nEdit 01\nSearch 02\nDelete 03\nExit 04\n";
cin>>choice;
switch(choice) {
/*
CASE 1 EDIT
*/
case 1:
s://();
cout<<"\nEnter ID no Of Patient: ";
cin>>i1;
a[i1].edit(i1);
cout<<"\nEnter another Patient data ? Press A";
cin>>q;
if(q=='a'||q=='A')
goto s;
else{
a1: cout<<"\n\n\t\tBack to main menu press M\n";
cin>>m;
if(m=='m'||m=='M')
goto a;
else
// //();

goto a1; }
/*
CAES 2 SEARCH
*/
case 2: char s;
z: ////();
cout<<"\n\tSearch by name: Press N";
cout<<"\n\tSearch by ID no: Press I";
cin>>s;
/*
MULTI OPTION SEARCH
*/
if(s=='i') //BY ID NO..
{
cout<<"\nEnter ID no Of Patient: ";
cin>>i1;
a[i1].show(i1);
a2: cout<<"\n\n\t\tBack to main menu press M\n";
cin>>m;
if(m=='m'||m=='M')
goto a;
else
//();
goto a2; }
else if(s=='n') //BY NAME
{
char name1[10];
cout<<"\nEnter Patient name: ";
cin>>name1;
cout<<"\nSearching for Patient Name: => "<<name1<<" > > > Wait....";
for(int x=1;x<=500;x++)
{
if(strcmp(name1,a[x].name)==0)
a[x].show(x);
}
cout<<"\nRecord not found...";
}
else
goto z;
break;
/*
CASE 3 DELETE DATA
*/
case 3:
cout<<"\nEnter ID no Of Patient: ";
cin>>i1;
a[i1].delet(i1);
a3: cout<<"\n\n\t\tBack to main menu press M\n";
cin>>m;
if(m=='m'||m=='M')
goto a;
else
////();
goto a3;
/*
CASE 4 EXIT
*/
case 4:
exit(0);
default:
////();
goto a;
}
//return 0;
}
////////////////////////
fstream file1,file2;
patient bk;
void creat_data()
{
char ch;
file1.open("patient.dat",ios::out|ios::app);
do
{
////();
bk.edit(0);
file1.write((char*)&bk,sizeof(patient));
cout<<"\n\nDo you want to add more record..(y/n?)";
cin>>ch;
}while(ch=='y'||ch=='Y');
file1.close();
}
void delete_patient()
{
char n[6];
int flag=0;
////();
cout<<"\n\n\n\tDELETE Patient...";
cout<<"\n\nEnter The ID no. of the Patient You Want To Delete : ";
cin>>n;
file1.open("patient.dat",ios::in|ios::out);
fstream file2;
file2.open("Temp.dat",ios::out);
file1.seekg(0,ios::beg);
while(file1.read((char*)&bk,sizeof(patient)))
{
if(strcmp(n,n)==0)
file2.write((char*)&bk,sizeof(patient));
else
flag=1;
}
file2.close();
file1.close();
remove("patient.dat");
rename("Temp.dat","patient.dat");
if(flag==1)
cout<<"\n\n\tRecord Deleted ..";
else
cout<<"\n\nRecord not found";
// getch();
}
//////////////////////
void pass()
{
char u[]={"usman"},pass[20],awe[20];
f://();

//gotoxy(30,15);
cout<<char(3)<<char(3)<<" AUTHENTICATION REQUIRED "<<char(3)<<char(3);
//gotoxy(26,17);
cout<<"User Name= ";
cin>>awe;

//gotoxy(26,19);
cout<<"Pass Word= ";
cin>>pass;
cout<<"\n\nChecking for Username and Password...........\n\n";
{
if(strcmp(pass,u)==0)
h:{
//delay(1500);
cout<<"\n\n\t\t\t"<<char(1)<<" LOGIN SUCCESFULY "<<char(1);
cout<<"\n\n\n\n\n\n\t\t\" PRESS ANY KEY TO CONTINUE\"";
//getch();
}
else {
cout<<"\n\n\n\n\n\n\n\n\n\t\t\"SORY WORNG USERNAME OR
PASSWORD\"\n\n\t\t TRY AGIAN ";
//delay(1800);
goto f;}
}}
////////////////////////// INTRO//
void intro()
{
////();
//gotoxy(20,10);
cout<<"MADICAL LAB MANEGMENT SYSTEM";
//gotoxy(5,20);
cout<<"\n Usman Siddique from Comsats wah";
//getch();
}
Output of C program, :

6.0 Outputs of the Micro-Project:

Created a C++ program to create laboratory management


system.
ANEEXURE -II
Evaluation sheet for the Micro project

Academic Year: 2021-22 Name of the Faculty: Kawade ma’am


Course: object oriented programming Course code: 22316. Semester:-3I

Title of the project: Laboratory management system

Cos addressed by Micro project:


A: Develop C++ programs to solve problems using Procedure Oriented Approach.
B: Develop C++ programs using classes and objects.
C: Implement Inheritance in C++ program.
Major learning outcomes achieved by students by doing the project.
(a) Practical outcome:
Created a C++ program to create laboratory management system.
(b) Unit outcomes in Cognitive domain:
Write OOP based C++ program using classes, objects, array, functions, loops, structures
to solve the given problem.
(c)Outcomes in Affective domain:
a. Handle command prompt environment.
b. Experiment OOP environment.
e. Plan, construct, compile, debug and test programs.
Comments/suggestions about team work/leadership/inter-personal communication (if any)
....................................................................................................................................................................
Marks out of 6 for Marks out of 4for
Roll
Student Name performance in group performance in group Total out of
No
activity (D5 Col.8) activity (D5 Col.8) (10)
Tejaswini Ramkrishna
11
Yadav

15 Aditi Mohan Yewale

21 Ankita Shahaji Jadhav

Sign of faculty

You might also like