SlideShare a Scribd company logo
1 of 26
Download to read offline
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 project final for class 12 Students
Computer project final for class 12 StudentsComputer project final for class 12 Students
Computer project final for class 12 StudentsShahban Ali
 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdfHarshitSachdeva17
 
IP Final project 12th
IP Final project 12thIP Final project 12th
IP Final project 12thSantySS
 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQLDarshit Vaghasiya
 
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
 
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 PythonAbhishekKumarMorla
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul PatelMitul Patel
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18HIMANSHU .
 
Computer Science Investigatory Project
Computer Science Investigatory ProjectComputer Science Investigatory Project
Computer Science Investigatory ProjectPrakhar Seth
 
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
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project  12th CBSE Computer Science Project
12th CBSE Computer Science Project Ashwin Francis
 
Computer science project work
Computer science project workComputer science project work
Computer science project workrahulchamp2345
 
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 12OmRanjan2
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shopYash Panwar
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THSHAJUS5
 
IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSESylvester Correya
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL Rishabh-Rawat
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project D. j Vicky
 

What's hot (20)

Computer project final for class 12 Students
Computer project final for class 12 StudentsComputer project final for class 12 Students
Computer project final for class 12 Students
 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
 
IP Final project 12th
IP Final project 12thIP Final project 12th
IP Final project 12th
 
Ip project
Ip projectIp project
Ip project
 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQL
 
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...
 
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
 
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 INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
 
Computer Science Investigatory Project
Computer Science Investigatory ProjectComputer Science Investigatory Project
Computer Science Investigatory Project
 
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)
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project  12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
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
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
 
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
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 

Similar to computer science project class 12th

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 game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
 
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

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

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