0% found this document useful (0 votes)
42 views

Computer Science Project

This document is a project report submitted by Shivangi Mall of class XII for their computer science project on a "Doctor Appointment Case System". The report describes the design and implementation of the system which allows for scheduling and managing doctor appointments. It covers the header files used, files generated, coding, output screens, and concludes by discussing how the system simplifies and improves medical practices.

Uploaded by

Chinmoy Barman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Computer Science Project

This document is a project report submitted by Shivangi Mall of class XII for their computer science project on a "Doctor Appointment Case System". The report describes the design and implementation of the system which allows for scheduling and managing doctor appointments. It covers the header files used, files generated, coding, output screens, and concludes by discussing how the system simplifies and improves medical practices.

Uploaded by

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

A Project Report On

“Student RepoRt CaRd


Management System"

Submitted By
Name:
Class: XII
Board roll no:

Under The Guidance of


Mr. Raja Iswary

ACKNOWLEDGEMENT
This report details the design and implementation of a
Doctor Appointment of Case System, a computer science
project developed by Chinmoy Ch Barman of class XI.
The project aims to create a simple and efficient system
for scheduling and managing the appointments of
patients with doctors in a hospital. The project applies
various computer science concepts and methods, such
as data structures, file handling, modular programming,
and graphical user interface. The project was
accomplished under the guidance and support of Mr.
Raja Iswary, the computer science teacher. The report is
submitted as a component of the evaluation process for
the final examination of the subject. The report is
original and reliable, and reflects the diligence and

enthusiasm of the student.

CERTIFICATE
The project report titled
“Doctor Appointment of Case System”
Prepared by Shivangi Mall of class XII from
Bongaigaon Higher Secondary School (E.M)
for the Assam Higher Secondary Council has
successfully completed the project under the
supervision of Mr. Raja Iswary, in the academic
session 2022-2023.
This project has been accepted as it meets the
academic standards for the project work
specified in the syllabus.
Signature of Subject Teacher Signature of
External Teacher

DECLARATION

I certify that the project work titled “Doctor


Appointment of Case System”, submitted to the
department of Computer Science, Bongaigaon
Higher Secondary School (E.M) is my original
work. I have done all the coding by myself.
Shivangi Mall
XII (Science)

CONTENTS
1. Introduction to C++

2.Header file

3.Files generated

4. Working Description and Coding

5.Output Screen
6. Conclusion

7.Bibliography
Introduction to C++
C++ is a programming language that
was invented by Bjarne Stroustrup as a
modification of the C language, or “C
with Classes”. The language has grown
considerably over the years, and
modern C++ supports object-oriented,
generic, and functional programming
styles, as well as low-level memory
management. C++ is typically
compiled into executable code, and
there are many C++ compilers offered
by different vendors, such as the Free
Software Foundation, LLVM, Microsoft,
Intel, Oracle, and IBM, making it
compatible with various platforms.
HEADER FILE USED

1. iostream.h- It contains the declarations of


all the input/output functions.
2. fstream.h- for file handling, cin and cout
3. iomanip.h- For the manipulators setw()
and setprecision().

Header Files Used

1. iostream.h- It contains the declarations of all the


input/output functions, such as cin, cout, cerr, clog,
etc.
2. fstream.h- It contains the declarations of the file
stream classes, such as ifstream, ofstream, and
fstream, which are used for file handling operations,
such as opening, closing, reading, and writing files.
3. iomanip.h- It contains the declarations of the
input/output manipulators, such as setw,
setprecision, setfill, etc., which are used to format
the output of the data.
4. string.h- It contains the declarations of the string
class, which is used to manipulate strings, such as
creating, copying, comparing, concatenating, etc.
5. cstring.h- It contains the declarations of the C-style
string functions, such as strcpy, strcmp, strcat, strlen,
etc., which are used to manipulate null-terminated
character arrays.

#include <iostream>
#include <string>

#include <fstream>
#include <cstring>

using namespace std;

int bookAppointment()
{

system("cls");

cout<<"\n ----- Book Your Appointment ---- \n";


cout<<"\n ----- Availbale slots ---- \n";

//check if record already exist..

ifstream read;
read.open("appointment.dat");

int hoursbook = 8;

int arr[13] =
{0,0,0,0,0,0,0,0,0,0,0,0,0}; int
recordFound =0;

if(read)
{
string line;
char key = 'A';

int i = 9;

while(getline(read,
line)) { char temp =
line[0]; int index =
(temp - 65);

arr[index]=1;

recordFound = 1;
}
if(recordFound == 1)
{
cout<<"\n Appointment Summary by hours:";
char key = 'A';

int hours = 9;
for(int i = 0; i<=12; i++)
{
if(i == 0){
if(arr[i] == 0)

cout<<"\n "<<key<<"-> 0"<<hours<<" -


Available"; else

cout<<"\n "<<key<<"-> 0"<<hours<<" -


Booked"; }

else
{

if(arr[i] == 0)

cout<<"\n "<<key<<"->"<<hours<<" -
Available"; else
cout<<"\n "<<key<<"->"<<hours<<" - Booked";
}

hours++; key++;
}

read.close();

}
if(recordFound == 0){

cout<<"\n Appointment Available for


following hours :";
char key = 'A';
for(int i = 9; i<=21; i++)
{

if(i==9)

cout<<"\n "<<key<<" -> 0"<<i<<"


- Available";
else

cout<<"\n "<<key<<" -> "<<i<<" - Available";


key++;
}

char choice;
cout<<"\n\n Input your choice :
"; cin>>choice;

if( !(choice >= 'A' && choice <='Z'))

{
cout<"\n Error : Invalid Selection";

cout<<"\n Please selction correct value from


menu A- Z";
cout<"\n Press any key to continue";
getchar();getchar();

system("cls");
bookAppointment();
}

int index = (choice-65 );


int isBooked = 1;

if(arr[index] == 0)
isBooked = 0;

if(isBooked ==1)
{

cout<<"\n Error : Appointment is already


booked for this Hour";

cout<<"\n Please select different time !!";


cout<<"\n Press any key to continue!!";
getchar();getchar();
system("cls");
bookAppointment();
}

string name;

cout<<"\n Enter your first


name:"; cin>>name;
ofstream out;
out.open("appointment.dat", ios::app);

if(out){

out<<choice<<":"<<name.c_str()<<"\n";
out.close();
cout<<"\n Appointment booked for Hours :
"<< (choice-65) + 9 <<" successfully !!";
}
else

{
cout<<"\n Error while saving booking";
}

cout<<"\n Please any key to


continue.."; getchar(); getchar();

return 0;
}

int existingAppointment()
{
system("cls");

cout<<"\n ----- Appointments Summary ---- \n";


//check if record already exist..
ifstream read;
read.open("appointment.dat");

int hoursbook = 8;

int arr[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};


int recordFound =0;

if(read)
{
string line;

char key = 'A';


int i = 9;

while(getline(read, line))
{ char temp = line[0];
int index = (temp - 65);
arr[index]=1;
recordFound = 1;
}

if(recordFound == 1)
{
cout<<"\n Appointment Summary by hours:";
char key = 'A';
int hours = 9;
for(int i = 0; i<=12; i++)

{
if(arr[i] == 0)

cout<<"\n "<<key<<"-
>"<<hours<<" - Available";
else

cout<<"\n "<<key<<"->"<<hours<<" -
Booked"; hours++; key++;

read.close();

}
else
{
char key = 'A';
for(int i = 9; i<=21; i++)
{

if(i==9)

cout<<"\n "<<key<<" -> 0"<<i<<" -


Available"; else
cout<<"\n "<<key<<" -> "<<i<<" - Available";
key++;
}
}

cout<<"\n Please any key to


continue.."; getchar(); getchar();
return 0;

}
int main(int argc, char**
argv) { while(1)
{
system("cls");
cout<<"\t\t\tDoctor Appointment System\n";
cout<<"------------------------------------
-

---\n\n";

cout<<"1. Book Appointment\n";


cout<<"2. Check Existing Appointment\n";

cout<<"0. Exit\n";
int choice;

cout<<"\n Enter you choice:


"; cin>>choice;

switch(choice)
{

case 1: bookAppointment(); break;


case 2: existingAppointment();
break; case 0:

while(1)

{
system("cls");
cout<<"\n Are you sure, you
want
to exit? y | n \n";
char ex;
cin>>ex;

if(ex == 'y' || ex == 'Y')


exit(0);
else if(ex == 'n' || ex == 'N')
{
break;
}
else{

cout<<"\n Invalid choice !!!";


getchar();
}
} break;
default: cout<<"\n Invalid choice. Enter
again ";
getchar();

}
return 0;
}

1.iOutput Screen

1.iiOutput Screen
1.iiiOutput Screen

1.ivOutput Screen
1.vOutput Screen
…….xxxx………
Conclusion
The Doctor Management System is
a project that offers a convenient
and systematic way of handling
various aspects of medical practices.
It simplifies the process of
appointment scheduling and patient
records management, improves the
communication between doctors
and staff, and increases the
efficiency and quality of healthcare
services. The project also features a
user-friendly interface that is easy to
use and navigate for both doctors
and administrative staff, creating a
smooth and hassle-free experience
in the daily operations of a medical
facility.
BIBILOGRAPHY

Bibliography

 Bjarne Stroustrup. (2020). The C++


Programming Language. Addison-Wesley.
 C++ Tutorial. (n.d.). Retrieved January 14,
2024, from https://www.w3schools.com/cpp/
 Doctor Appointment System. (n.d.). Retrieved
January 14, 2024, from
https://www.freeprojectz.com/c-plus-plus-
projects/doctor-appointment-system
 How to Write a Bibliography. (n.d.). Retrieved
January 14, 2024, from
https://www.scribbr.com/category/citing-
sources/
 What is a Bibliography? (n.d.). Retrieved
January 14, 2024, from
https://www.easybib.com/guides/what-is-a-
bibliography/

You might also like