class12 project cs
Post on 03-Jun-2018
221 Views
Preview:
TRANSCRIPT
-
8/12/2019 Class12 Project Cs
1/32
I
OMPUTER
SCIENCE
PROJECTMade by:-
Harsh &Saurabh
-
8/12/2019 Class12 Project Cs
2/32
II
TOPICTo show the management
Of library.
Teacher Incharge:
Mr. Vishnu Raval
ERTIFICATE
-
8/12/2019 Class12 Project Cs
3/32
III
THIS IS TO CERTIFY THAT THIS PROJECT ISMADE BY HARSH SHARMA AND SAURABH
KUMAR SINGH OF CLASS XII SCIENCE OFKENDRIY VIDYALAYA CRPF GANDHINAGARSCHOOL, UNDER THE GUIDANCE OF COMPUTERSCIENCE PGT MR.VISHNU RAVAL.
_____________ _____________SUBJECT PrinciP lsTEACHER SignatureSIGNATURE___________________ExtErn l Ex minErsSignature
-
8/12/2019 Class12 Project Cs
4/32
IV
INDEX
SUMMARY/ NEED FOR PROJECT.
MINIMUM REQUIREMENTS
1. HARDWARE
2. SOFTWARE
HEADER FILES
SOURCE CODE
INPUT AND OUTPUT
-
8/12/2019 Class12 Project Cs
5/32
V
SUMMARY
THIS PROJECT IS BUILD TO SHOW THEMANAGEMENT OF LIBRARY.
Advantages:-ENABLES THE USER TO ISSUE HIS/HER
DESIRED BOOK.
-
8/12/2019 Class12 Project Cs
6/32
VI
MINIMUMR QUIR M NTSHardware IT REQUIRES A PC HAVING THESEHARDWARE
Memory
It requires that 384K of the first 512K of random access memory
(RAM) is free.
Disk Drive
. It requires minimum hard disk of size 40 mb.
Monitor
It can be run on any monitor 80. It does not support MicrosoftWindows graphics.
SOFTWARE.
Operating System
It requires turbo C++ software with any operating system.
It also requires the MS-DOS version 2.0 or greater.
-
8/12/2019 Class12 Project Cs
7/32
VII
HEADERFILES USED fstream.h-using functions cin, cout, open(), close()
conio.h-using functionsgetch(), clrscr() stdio.h-using functionsgets()
process.h-using functions exit(0)
string.h-using functions strcpy(), strcmp()
iomanip.h-using functions setw()
-
8/12/2019 Class12 Project Cs
8/32
VIII
ACKNOWLEDGEMENT
I would like to express my special thanks ofgratitude to my computer science teacherMR.VISHNU RAVALas well as my principal
MRS.JAMIE JAMES madam who gave us thegolden opportunity to do this wonderful project
on the topic computer science, which alsohelped us in doing a lot of Research and wecame to know about so many new things.
Secondly we would also like to thank our
parents and friends who helped us a lot infinishing this project within the limited time.
THANK AGAIN TO ALL WHO
HELPED US.
-
8/12/2019 Class12 Project Cs
9/32
IX
FUNCTIONS USED write_book()
argument typevoidreturn type -void
write_student()argument typevoid
return typevoid
display_spb()argument type[]
return typevoid
display_sps()argument type-[]
return type-void
modify_book()argument type-void
return type-void
modify_student()
argument type-voidreturn type-void
delete_student()argument type-void
return type-void
delete_book()argument type-void
return type-void
display_alls()argument type-void
return type-void
-
8/12/2019 Class12 Project Cs
10/32
X
display_allb()argument type-void
return type-void
book_issue()argument type-voidreturn type-void
book_deposit()argument type-void
return type-void
intro()argument type-void
return type-void admin_menu()
argument type-void
return type-void
main()return type-void
-
8/12/2019 Class12 Project Cs
11/32
-
8/12/2019 Class12 Project Cs
12/32
XII
puts(bname);cout
-
8/12/2019 Class12 Project Cs
13/32
XIII
}
void show_student(){
cout
-
8/12/2019 Class12 Project Cs
14/32
XIV
{cout
-
8/12/2019 Class12 Project Cs
15/32
XV
fp.close();}
//***************************************************************
// Function to read specific record from file//****************************************************************
void display_spb(char n[])
{cout
-
8/12/2019 Class12 Project Cs
16/32
XVI
getch();}
//***************************************************************
// Function to modify record of file//****************************************************************
void modify_book()
{char n[6];
int found=0;clrscr();
cout
-
8/12/2019 Class12 Project Cs
17/32
XVII
coutn;
fp.open("student.dat",ios::in|ios::out);while(fp.read((char*)&st,sizeof(student)) && found==0)
{
if(strcmpi(st.retadmno(),n)==0){st.show_student();
cout
-
8/12/2019 Class12 Project Cs
18/32
XVIII
flag=1;}
fp2.close();
fp.close();
remove("student.dat");rename("Temp.dat","student.dat");if(flag==1)
cout
-
8/12/2019 Class12 Project Cs
19/32
XIX
//***************************************************************// Function to display all students list
//****************************************************************
void display_alls()
{ clrscr();fp.open("student.dat",ios::in);
if(!fp){
cout
-
8/12/2019 Class12 Project Cs
20/32
XX
cout
-
8/12/2019 Class12 Project Cs
21/32
XXI
flag=1;st.addtoken();
st.getstbno(bk.retbno());int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));cout
-
8/12/2019 Class12 Project Cs
22/32
XXII
{if(strcmpi(bk.retbno(),st.retstbno())==0)
{bk.show_book();
flag=1;
coutday;if(day>15)
{fine=(day-15)*1;
cout
-
8/12/2019 Class12 Project Cs
23/32
XXIII
//***************************************************************// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{ clrscr();gotoxy(35,11);
cout
-
8/12/2019 Class12 Project Cs
24/32
XXIV
switch(ch2){
case 1: clrscr();write_student();break;
case 2: display_alls();break;
case 3: char num[6];clrscr();
coutnum;
display_sps(num);break;
case 4: modify_student();break;case 5: delete_student();break;
case 6: clrscr();write_book();break;
case 7: display_allb();break;case 8: {
char num[6];clrscr();
coutnum;
display_spb(num);break;
}case 9: modify_book();break;
case 10: delete_book();break;case 11: return;
default:cout
-
8/12/2019 Class12 Project Cs
25/32
XXV
//***************************************************************// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
void main(){char ch;
intro();do
{clrscr();
cout
-
8/12/2019 Class12 Project Cs
26/32
XXVI
INPUT/OUTPUT
-
8/12/2019 Class12 Project Cs
27/32
XXVII
-
8/12/2019 Class12 Project Cs
28/32
XXVIII
-
8/12/2019 Class12 Project Cs
29/32
XXIX
-
8/12/2019 Class12 Project Cs
30/32
XXX
-
8/12/2019 Class12 Project Cs
31/32
XXXI
BIBLIOGRAPHY
WE (HARSH & SAURABH)COLLECTIVELY USED THE
FOLLOWING SOURCESFREQUENTLY:-
CLASS NOTES.
COMPUTER SCIENCE with C++BY SUMITA ARORA.CBSE.NIC.IN.
-
8/12/2019 Class12 Project Cs
32/32
top related