ๅฐŠๆ•ฌ็š„ ๅพฎไฟกๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046166 ๅ…ƒ ๆ”ฏไป˜ๅฎๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046257ๅ…ƒ [้€€ๅ‡บ็™ปๅฝ•]
SlideShare a Scribd company logo
SANT NIRANKARI PUBLIC SCHOOL
(2018-19)
COMPUTER
SCIENCE
PROJECT
CLASS โ€“ XII-A
Submitted to:-
Mrs.Gurjeet
TOPIC:
TELEPHONE
DIARY
SUBMITTED BY:-
๏ถ Nitesh
CONTENT
1. Certificate
2. Acknowledgement
3. Introduction To C++
4. Introduction To Project
5. Header Files
6. Program Codes
7. Output
8. Bibliography
CERTIFICATE
This is to certify that Nitesh of class
XII-A has successfully completed this
project under my supervision and
guidance. he has kept all necessary
details in his mind while making this
project. he has compiled the whole
project as desired.
_____________ _____
Teacherโ€™s signature
ACKNOWLEDGEMENT
I wish to express my sincere thanks to Mrs.Ranjana
Grover, Principal of Sant Nirankari Public School for
guiding me to cause the successful outcome of this
project work.
I wish to express my deep & profound sense of
gratitude to my guide/teacher Mrs.Gurjeet, for her
expert help &valuable guidance, comments and
suggestions.
I also place on record, my sincere Gratitude to one and
all who, Directly or Indirectly, Have Lent their helping
hand in this venture.
INTRODUCTION TO C++
C++ is a programming Language Developed by Bjarne
Stroustrup. It was originally named as C with classes, was
renamed as C++ in 1983.It is regarded as an intermediate-level
language, as it comprises both high level and low-level language
features. Its application domains include system software,
application software, device drivers, embedded software, high-
performance server and client applications, and entertainment
software such as video games. C++ continues to be used and is
one of the preferred programming languages to develop
professional applications .C++ includes several operators such
as comparison, arithmetic, bit manipulation, logical operators
etc. One of the most attractive features of C++ is that it enables
the overloading of certain operators such as addition.
A few of the essential concepts within C++ programming
language include polymorphism, virtual and friend functions,
templates, name spaces and pointers.
For a time, C++ had no official standard and was maintained by
a de- facto standard, however since 1993, C++ is standardized
by a committee of the ISO.
C++ compiles directly to a machine's native code, allowing it to
be one of the fastest languages in the world, if optimized. C++
also supports both static and dynamic type checking.
C++ allows type conversions to be checked either at compile-
time or at run-time, again offering another degree of flexibility.
Most C++ type checking is, however, static.
INTRODUCTION TO
PROJECT
The telephone management system is database system. In
the system, we will try to give full information of the
telephoneโ€™s administration to the users. The users are very
familiar to the system. This system will be making more
easily to telephone work comparison to manual system.
The telephone directory system is a live project and it
provides a good flexibility and quick service.
In this system, we briefly describe the two main modules
that are generally used in telephone exchange i.e.
Registration and Evaluation. These two parts are
generally used in any telephone exchange and that is very
common or important.
Administration is the first module of the telephone
directory. This module contains the full information
about telephone exchange like customerโ€™s details,
telephone number, std codes, etc. user can easily enter the
data in fields of the form like name, address, city, phone
number. This is the last and final module of the project.
Every telephone directory has needs to done this process.
Manually this very tedious, tough and time consuming
work but we want to make it easier to do this. In the
evaluation we find out the details customers.
Header Files
IOSTREAM.H - for basic I/O operations
CONIO.H - for clrscr()and getch() function
STDIO.H - for standard I/O operations
FSTREAM.H - for file handling
STRING.H โ€“ for string handling
PROCESS.H โ€“for exit() function
DOS.H โ€“ for delay function
PROGRAM CODING
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<process.h>
#include<dos.h>
class tel_bil
{
private:
int calls;
char name[100],adrs[100],city[30];
public:
char tel_no[15];
long unsigned int cons_no;
void show_data();
void get_data();
};
fstream file;
void tel_bil::get_data()
{
char ch;
cin.get(ch);
cout<<"ntENTER NAME: ";
cin.getline(name,30);
cout<<"ntENTER ADDRESS: ";
cin.getline(adrs,100);
cout<<"ntENTER CITY: ";
cin.getline(city,40);
cout<<"ntENTER TOTAL NO. OF CALLS: ";
cin>>calls;
}
void tel_bil::show_data()
{
float tax=0.02;
float charge;
int n;
char ch;
if(calls>=50)
{
n=calls-50;
tax=tax*n;
charge=tax+(2*n)+60;
}
else
{
n=0;
tax=0;
charge=60;
}
cout<<"ntttBHARAT SANCHAR NIGAM LIMITED";
cout<<"ntttttPOSTPAID";
cout<<"nnttt_______________________________________
";
cout<<"ntTELEPHONE NO.: "<<tel_no;
cout<<"ntCONSUMER NO.: "<<cons_no;
cout<<"ntCONSUMER NAME: ";
cout<<name;
cout<<"ntADDRESS: ";
cout<<adrs;
cout<<"ntCITY: ";
cout<<city;
cout<<"ntTOTAL NO. OF CALLS: ";
cout<<calls;
cout<<"ntFREE CALLS :"<<"50";
cout<<"ntCHARGEABLE CALLS: "<<n;
cout<<"ntTAX (2%):"<<tax;
cout<<"ntCHARGE PER CALL: "<<"Rs.2";
cout<<"ntADDITIONAL CHARGES: Rs. 60";
cout<<"ntTOTAL CHARGES: "<<charge;
}
void main()
{
clrscr();
tel_bil a;
int choice;
char ch;
cout<<"nnntttWELCOME TO THE PROJECT";
cout<<"ntt______________________________________";
cout<<"nntttTELEPHONE BILLING SYSTEM";
cout<<"ntt______________________________________";
delay(2000);
while(1)
{
clrscr();
cout<<"nttttOPTIONS";
cout<<"nt1. TO ADD NEW RECORD"<<"nt2. TO SEE RECORD"<<"nt3.
FOR ENQUIRY" <<"nt4. TO MODIFY RECORD"<<"nt5. TO
DELETE"<<"nt6. QUIT"; cout<<"nntENTER YOUR CHOICE: ";
cin>>choice;
clrscr();
if(choice==1) //to add record
{
char no[15];
int flag;
long unsigned int p,q;
file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate);
cout<<"ntENTER TELEPHONE NO.: ";
cin.get(ch);
cin.getline(no,15);
file.seekg(0);
flag=0;
do
{
file.read((char*)&a,sizeof(a));
if(strcmp(a.tel_no,no)==0)
{
cout<<"nnttTHIS TELEPHONE NO. ALREADY EXIST.........";
flag=1;
getch();
break;
}
}
while(!file.eof());
file.close();
if(flag==0)
{
file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate);
file.seekp(0,ios::end);
p=file.tellp();
q=(p/sizeof(a))+1;
strcpy(a.tel_no,no);
a.cons_no=q;
a.get_data();
file.write((char*)&a,sizeof(a));
cout<<"nnttRECORD ADDED...............";
file.close();
getch();
}
}
else
if(choice==2) //to see record
{
file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate);
file.seekg(0);
int t=0;
while(file.read((char*)&a,sizeof(a)))
{
t=1 ;
cout<<"nn";
a.show_data();
getch();
}
if(t==0)
{
cout<<"nnttFILE DOES NOT EXIST.............";
getch();
}
file.close();
}
else
if(choice==3) //for enquiry
{
file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate);
char no1[15];
int i=0;
cout<<"nnttENTER THE TELEPHONE NO.: ";
cin.get(ch);
cin.getline(no1,15);
file.seekg(0);
do
{
file.read((char*)&a,sizeof(a));
if(strcmp(a.tel_no,no1)==0)
{
a.show_data();
i=1;
getch();
break;
}
}
while(!file.eof());
if(i==0)
{
cout<<"nnttTHIS TELEPHONE NO. DOES NOT EXIST.........";
getch();
}
file.close();
}
else
if(choice==4) // for modification
{
long unsigned int b;
int s=0;
file.open("tel.dat",ios::in|ios::binary|ios::out);
char no2[15],no3[15];
file.seekg(0);
cout<<"nnttENTER THE TELEPHONE NO. TO BE MODIFIED: ";
cin.get(ch);
cin.getline(no2,15);
while(file.read((char*)&a,sizeof(a)) && s==0)
{
if(strcmp(a.tel_no,no2)==0)
{
a.show_data();
getch();
clrscr();
cout<<"ntttENTER NEW RECORDS";
cout<<"nnttENTER TELEPHONE NO.: ";
cin.getline(no3,15);
strcpy(a.tel_no,no3);
a.get_data();
int pos=-1*sizeof(a);
file.seekp(pos,ios::cur);
file.write((char*)&a,sizeof(a));
cout<<"nntt RECORD UPDATED...........";
s=1;
delay(1000);
break;
}
}
if(s==0)
{
cout<<"nnttNO. NOT FOUND......." ;
getch();
}
file.close();
}
else
if(choice==5) //to delete
{
char no[15];
int k=0;
cout<<"nnttENTER THE TELEPHONE NO. YOU WANT TO DELETE: ";
cin.get(ch);
cin.getline(no,15);
file.open("tel.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
file.seekg(0,ios::beg);
fp2.seekg(0,ios::beg);
while(file.read((char*)&a,sizeof(a)))
{
if(strcmp(a.tel_no,no)==0)
{
a.show_data();
k=1;
cout<<"nnttRECORD DELETED ......";
}
else
fp2.write((char*)&a,sizeof(a));
}
fp2.close();
file.close();
if(k==0)
{
cout<<"nnttNO. NOT FOUND.......";
}
remove("tel.dat");
rename("Temp.dat","tel.dat");
getch();
clrscr();
}
else
if(choice==6) //exit
exit(0);
else
{
cout<<"nnttWRONG CHOICE....";
delay(1000);
}
}
}
OUTPUT
1.Welcome Screen.
2. Menu Screen.
3. To Add Records.
4. To See Records.
5. To do Enquiry.
When phone number does not exists.
6. To Modify Records.
7.Deletion of Record.
BIBLIOGRAPHY
HELP FROM INTERNET
INFORMATION FROM BOOKS
HELP FROM TEACHERS

More Related Content

What's hot

Computer science project work
Computer science project workComputer science project work
Computer science project work
rahulchamp2345
ย 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
SHAJUS5
ย 
IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
Sylvester Correya
ย 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
Self-employed
ย 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
ArkaSarkar23
ย 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
Mitul Patel
ย 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
OmRanjan2
ย 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
AbhishekKumarMorla
ย 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
KushShah65
ย 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQL
Darshit Vaghasiya
ย 
C s investigatory project on telephone directory
C s  investigatory project on telephone directoryC s  investigatory project on telephone directory
C s investigatory project on telephone directory
SHUBHAM YADAV
ย 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
HarshitSachdeva17
ย 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
Self-employed
ย 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
YugenJarwal
ย 
Study of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milkStudy of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milk
Neelanjyan Dutta
ย 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
Pritam Samanta
ย 
Computer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school managementComputer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school management
RemaDeosiSundi
ย 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
NIKHIL DWIVEDI
ย 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
RAM LAL ANAND COLLEGE, UNIVERSITY OF DELHI
ย 

What's hot (20)

Computer science project work
Computer science project workComputer science project work
Computer science project work
ย 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
ย 
IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
ย 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
ย 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
ย 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
ย 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
ย 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
ย 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
ย 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQL
ย 
C s investigatory project on telephone directory
C s  investigatory project on telephone directoryC s  investigatory project on telephone directory
C s investigatory project on telephone directory
ย 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
ย 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
ย 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
ย 
Study of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milkStudy of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milk
ย 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
ย 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
ย 
Computer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school managementComputer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school management
ย 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
ย 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
ย 

Similar to computer science project class 12th

Telephone directory
Telephone directoryTelephone directory
Telephone directory
Upendra Sengar
ย 
Telephone directory in c
Telephone directory in cTelephone directory in c
Telephone directory in c
Upendra Sengar
ย 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
Nirdhishwar Nirdhi
ย 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
Upendra Sengar
ย 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
Upendra Sengar
ย 
Tictac
TictacTictac
Tictac
Upendra Sengar
ย 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
Debashis Rath
ย 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
Debashis Rath
ย 
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. studentPresentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Jiangxi University of Science and Technology (ๆฑŸ่ฅฟ็†ๅทฅๅคงๅญฆ)
ย 
Telephonedirectory (1)
Telephonedirectory (1)Telephonedirectory (1)
Telephonedirectory (1)
Abhay Modi
ย 
Medical store management system
Medical store management systemMedical store management system
Medical store management system
Upendra Sengar
ย 
Telephone directory using c language
Telephone directory using c languageTelephone directory using c language
Telephone directory using c language
Mauryasuraj98
ย 
Student record
Student recordStudent record
Student record
Upendra Sengar
ย 
Mau cv-bang-tieng-anh-curriculum-vitae
Mau cv-bang-tieng-anh-curriculum-vitaeMau cv-bang-tieng-anh-curriculum-vitae
Mau cv-bang-tieng-anh-curriculum-vitae
Integrated Circuit Design Research & Education Center (ICDREC)
ย 
Project for Student Result System
Project for Student Result SystemProject for Student Result System
Project for Student Result System
KuMaR AnAnD
ย 
Hotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh DhimanHotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh Dhiman
AryanSinghDhiman
ย 
PRINCE PRESENTATION(1).pptx
PRINCE PRESENTATION(1).pptxPRINCE PRESENTATION(1).pptx
PRINCE PRESENTATION(1).pptx
SajalKesharwani2
ย 
Online Job Portal
Online Job PortalOnline Job Portal
Online Job Portal
Prateek Kulshrestha
ย 
Ums in c
Ums in cUms in c
Ums in c
Upendra Sengar
ย 
Mukesh
MukeshMukesh
Mukesh
MayankJain615
ย 

Similar to computer science project class 12th (20)

Telephone directory
Telephone directoryTelephone directory
Telephone directory
ย 
Telephone directory in c
Telephone directory in cTelephone directory in c
Telephone directory in c
ย 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
ย 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
ย 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
ย 
Tictac
TictacTictac
Tictac
ย 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
ย 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
ย 
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. studentPresentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
ย 
Telephonedirectory (1)
Telephonedirectory (1)Telephonedirectory (1)
Telephonedirectory (1)
ย 
Medical store management system
Medical store management systemMedical store management system
Medical store management system
ย 
Telephone directory using c language
Telephone directory using c languageTelephone directory using c language
Telephone directory using c language
ย 
Student record
Student recordStudent record
Student record
ย 
Mau cv-bang-tieng-anh-curriculum-vitae
Mau cv-bang-tieng-anh-curriculum-vitaeMau cv-bang-tieng-anh-curriculum-vitae
Mau cv-bang-tieng-anh-curriculum-vitae
ย 
Project for Student Result System
Project for Student Result SystemProject for Student Result System
Project for Student Result System
ย 
Hotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh DhimanHotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh Dhiman
ย 
PRINCE PRESENTATION(1).pptx
PRINCE PRESENTATION(1).pptxPRINCE PRESENTATION(1).pptx
PRINCE PRESENTATION(1).pptx
ย 
Online Job Portal
Online Job PortalOnline Job Portal
Online Job Portal
ย 
Ums in c
Ums in cUms in c
Ums in c
ย 
Mukesh
MukeshMukesh
Mukesh
ย 

Recently uploaded

220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
ย 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
RuchiRathor2
ย 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
Celine George
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
ย 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
ย 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
ย 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
MJDuyan
ย 
A Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by QuizzitoA Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by Quizzito
Quizzito The Quiz Society of Gargi College
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
MattVassar1
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
ย 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
Frederic Fovet
ย 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
ย 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
ย 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
MattVassar1
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
ย 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
Infosec
ย 
IoT (Internet of Things) introduction Notes.pdf
IoT (Internet of Things) introduction Notes.pdfIoT (Internet of Things) introduction Notes.pdf
IoT (Internet of Things) introduction Notes.pdf
roshanranjit222
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
ย 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
ย 

Recently uploaded (20)

220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
ย 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
ย 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
ย 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
ย 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
ย 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
ย 
A Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by QuizzitoA Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by Quizzito
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
ย 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
ย 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
ย 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
ย 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
ย 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
ย 
IoT (Internet of Things) introduction Notes.pdf
IoT (Internet of Things) introduction Notes.pdfIoT (Internet of Things) introduction Notes.pdf
IoT (Internet of Things) introduction Notes.pdf
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
ย 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
ย 

computer science project class 12th

  • 1. SANT NIRANKARI PUBLIC SCHOOL (2018-19) COMPUTER SCIENCE PROJECT CLASS โ€“ XII-A Submitted to:- Mrs.Gurjeet
  • 3. CONTENT 1. Certificate 2. Acknowledgement 3. Introduction To C++ 4. Introduction To Project 5. Header Files 6. Program Codes 7. Output 8. Bibliography
  • 4. CERTIFICATE This is to certify that Nitesh of class XII-A has successfully completed this project under my supervision and guidance. he has kept all necessary details in his mind while making this project. he has compiled the whole project as desired. _____________ _____ Teacherโ€™s signature
  • 5. ACKNOWLEDGEMENT I wish to express my sincere thanks to Mrs.Ranjana Grover, Principal of Sant Nirankari Public School for guiding me to cause the successful outcome of this project work. I wish to express my deep & profound sense of gratitude to my guide/teacher Mrs.Gurjeet, for her expert help &valuable guidance, comments and suggestions. I also place on record, my sincere Gratitude to one and all who, Directly or Indirectly, Have Lent their helping hand in this venture.
  • 6. INTRODUCTION TO C++ C++ is a programming Language Developed by Bjarne Stroustrup. It was originally named as C with classes, was renamed as C++ in 1983.It is regarded as an intermediate-level language, as it comprises both high level and low-level language features. Its application domains include system software, application software, device drivers, embedded software, high- performance server and client applications, and entertainment software such as video games. C++ continues to be used and is one of the preferred programming languages to develop professional applications .C++ includes several operators such as comparison, arithmetic, bit manipulation, logical operators etc. One of the most attractive features of C++ is that it enables the overloading of certain operators such as addition. A few of the essential concepts within C++ programming language include polymorphism, virtual and friend functions, templates, name spaces and pointers. For a time, C++ had no official standard and was maintained by a de- facto standard, however since 1993, C++ is standardized by a committee of the ISO. C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized. C++ also supports both static and dynamic type checking. C++ allows type conversions to be checked either at compile- time or at run-time, again offering another degree of flexibility. Most C++ type checking is, however, static.
  • 7. INTRODUCTION TO PROJECT The telephone management system is database system. In the system, we will try to give full information of the telephoneโ€™s administration to the users. The users are very familiar to the system. This system will be making more easily to telephone work comparison to manual system. The telephone directory system is a live project and it provides a good flexibility and quick service. In this system, we briefly describe the two main modules that are generally used in telephone exchange i.e. Registration and Evaluation. These two parts are generally used in any telephone exchange and that is very common or important. Administration is the first module of the telephone directory. This module contains the full information about telephone exchange like customerโ€™s details, telephone number, std codes, etc. user can easily enter the data in fields of the form like name, address, city, phone number. This is the last and final module of the project. Every telephone directory has needs to done this process. Manually this very tedious, tough and time consuming work but we want to make it easier to do this. In the evaluation we find out the details customers.
  • 8. Header Files IOSTREAM.H - for basic I/O operations CONIO.H - for clrscr()and getch() function STDIO.H - for standard I/O operations FSTREAM.H - for file handling STRING.H โ€“ for string handling PROCESS.H โ€“for exit() function DOS.H โ€“ for delay function
  • 9. PROGRAM CODING #include<fstream.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<process.h> #include<dos.h> class tel_bil { private: int calls; char name[100],adrs[100],city[30]; public: char tel_no[15]; long unsigned int cons_no; void show_data(); void get_data(); };
  • 10. fstream file; void tel_bil::get_data() { char ch; cin.get(ch); cout<<"ntENTER NAME: "; cin.getline(name,30); cout<<"ntENTER ADDRESS: "; cin.getline(adrs,100); cout<<"ntENTER CITY: "; cin.getline(city,40); cout<<"ntENTER TOTAL NO. OF CALLS: "; cin>>calls; } void tel_bil::show_data() { float tax=0.02; float charge; int n; char ch; if(calls>=50)
  • 11. { n=calls-50; tax=tax*n; charge=tax+(2*n)+60; } else { n=0; tax=0; charge=60; } cout<<"ntttBHARAT SANCHAR NIGAM LIMITED"; cout<<"ntttttPOSTPAID"; cout<<"nnttt_______________________________________ "; cout<<"ntTELEPHONE NO.: "<<tel_no; cout<<"ntCONSUMER NO.: "<<cons_no; cout<<"ntCONSUMER NAME: "; cout<<name; cout<<"ntADDRESS: "; cout<<adrs; cout<<"ntCITY: "; cout<<city; cout<<"ntTOTAL NO. OF CALLS: ";
  • 12. cout<<calls; cout<<"ntFREE CALLS :"<<"50"; cout<<"ntCHARGEABLE CALLS: "<<n; cout<<"ntTAX (2%):"<<tax; cout<<"ntCHARGE PER CALL: "<<"Rs.2"; cout<<"ntADDITIONAL CHARGES: Rs. 60"; cout<<"ntTOTAL CHARGES: "<<charge; } void main() { clrscr(); tel_bil a; int choice; char ch; cout<<"nnntttWELCOME TO THE PROJECT"; cout<<"ntt______________________________________"; cout<<"nntttTELEPHONE BILLING SYSTEM"; cout<<"ntt______________________________________"; delay(2000); while(1) { clrscr();
  • 13. cout<<"nttttOPTIONS"; cout<<"nt1. TO ADD NEW RECORD"<<"nt2. TO SEE RECORD"<<"nt3. FOR ENQUIRY" <<"nt4. TO MODIFY RECORD"<<"nt5. TO DELETE"<<"nt6. QUIT"; cout<<"nntENTER YOUR CHOICE: "; cin>>choice; clrscr(); if(choice==1) //to add record { char no[15]; int flag; long unsigned int p,q; file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate); cout<<"ntENTER TELEPHONE NO.: "; cin.get(ch); cin.getline(no,15); file.seekg(0); flag=0; do { file.read((char*)&a,sizeof(a)); if(strcmp(a.tel_no,no)==0) {
  • 14. cout<<"nnttTHIS TELEPHONE NO. ALREADY EXIST........."; flag=1; getch(); break; } } while(!file.eof()); file.close(); if(flag==0) { file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate); file.seekp(0,ios::end); p=file.tellp(); q=(p/sizeof(a))+1; strcpy(a.tel_no,no); a.cons_no=q; a.get_data(); file.write((char*)&a,sizeof(a)); cout<<"nnttRECORD ADDED..............."; file.close(); getch(); } }
  • 15. else if(choice==2) //to see record { file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate); file.seekg(0); int t=0; while(file.read((char*)&a,sizeof(a))) { t=1 ; cout<<"nn"; a.show_data(); getch(); } if(t==0) { cout<<"nnttFILE DOES NOT EXIST............."; getch(); } file.close(); } else if(choice==3) //for enquiry
  • 16. { file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate); char no1[15]; int i=0; cout<<"nnttENTER THE TELEPHONE NO.: "; cin.get(ch); cin.getline(no1,15); file.seekg(0); do { file.read((char*)&a,sizeof(a)); if(strcmp(a.tel_no,no1)==0) { a.show_data(); i=1; getch(); break; } } while(!file.eof()); if(i==0) { cout<<"nnttTHIS TELEPHONE NO. DOES NOT EXIST.........";
  • 17. getch(); } file.close(); } else if(choice==4) // for modification { long unsigned int b; int s=0; file.open("tel.dat",ios::in|ios::binary|ios::out); char no2[15],no3[15]; file.seekg(0); cout<<"nnttENTER THE TELEPHONE NO. TO BE MODIFIED: "; cin.get(ch); cin.getline(no2,15); while(file.read((char*)&a,sizeof(a)) && s==0) { if(strcmp(a.tel_no,no2)==0) { a.show_data(); getch(); clrscr(); cout<<"ntttENTER NEW RECORDS";
  • 18. cout<<"nnttENTER TELEPHONE NO.: "; cin.getline(no3,15); strcpy(a.tel_no,no3); a.get_data(); int pos=-1*sizeof(a); file.seekp(pos,ios::cur); file.write((char*)&a,sizeof(a)); cout<<"nntt RECORD UPDATED..........."; s=1; delay(1000); break; } } if(s==0) { cout<<"nnttNO. NOT FOUND......." ; getch(); } file.close(); } else if(choice==5) //to delete { char no[15];
  • 19. int k=0; cout<<"nnttENTER THE TELEPHONE NO. YOU WANT TO DELETE: "; cin.get(ch); cin.getline(no,15); file.open("tel.dat",ios::in|ios::out); fstream fp2; fp2.open("Temp.dat",ios::out); file.seekg(0,ios::beg); fp2.seekg(0,ios::beg); while(file.read((char*)&a,sizeof(a))) { if(strcmp(a.tel_no,no)==0) { a.show_data(); k=1; cout<<"nnttRECORD DELETED ......"; } else fp2.write((char*)&a,sizeof(a)); } fp2.close(); file.close(); if(k==0)
  • 22. 3. To Add Records. 4. To See Records.
  • 23. 5. To do Enquiry. When phone number does not exists.
  • 24. 6. To Modify Records.
  • 26. BIBLIOGRAPHY HELP FROM INTERNET INFORMATION FROM BOOKS HELP FROM TEACHERS
  ็ฟป่ฏ‘๏ผš