8/9/2019 ter Science Project File on Book Shop 2010 Exam
1/30
8/9/2019 ter Science Project File on Book Shop 2010 Exam
2/30
TABLE OF CONTENTS
&erti'i%ate
A%kno($e#)e*ent
+ea#er 'i$es an# t!eir ,r,ose
&o#in)
Li*itations
Re.ire*ents
Bi$io)ra,!y
8/9/2019 ter Science Project File on Book Shop 2010 Exam
3/30
A%kno($e#)e*ent
I t!ank *y &o*,ter S%ien%e tea%!er Mr/
Neeraj 'or )i#an%e an# s,,ort/ I (o$# a$so
$ike to t!ank *y ,arents an# *y sister 'or
en%ora)in) *e #rin) t!e %orse o' t!is ,roje%t/
ina$$y I (o$# $ike to t!ank &BS 'or )iin) *e
t!is o,,ortnity to n#ertake t!is ,roje%t/
8/9/2019 ter Science Project File on Book Shop 2010 Exam
4/30
&erti'i%ate
3!is is to %erti'y t!at AADIL BIN USMAN
o' %$ass XII A Rajkiya Prati!a "ikas "i#ya$aya
S%!oo$ !as s%%ess'$$y %o*,$ete# !is ,roje%t in
%o*,ter ,ra%ti%a$s as ,res%rie# y &BS in
t!e year 2014-2015/
Date :
Si)natre o' Interna$ Si)natre o' terna$
a*iner a*iner
666666666666666666 666666666666666666
HEADER FILES USED
AND THEIR PURPOSE
8/9/2019 ter Science Project File on Book Shop 2010 Exam
5/30
1.FSTREAM.H for le handling, cin
and cout2. PROCESS.H for exit() function3. CONIO.H for clrscr() and getch()
functions4. STDIO.H for standard I/O operations5. STRING.H for string handling
6. CTYPE.H for character handling
8/9/2019 ter Science Project File on Book Shop 2010 Exam
6/30
CODING
#include
#include
#include
#include
#include
#include
class subject
{
public:
char s[5][4]!sub[5][5][4]"
8/9/2019 ter Science Project File on Book Shop 2010 Exam
7/30
subject$
{
strcpysub[][]!%&hysics '()*+,-%$"
strcpysub[][]!%&hysics '()*+,--%$"
strcpysub[][/]!%&radeep &hysics%$"
strcpysub[][0]!%1.(.2erma3t%$"
strcpysub[][4]!%+ogether ith%$"
strcpysub[][]!%(hemistry '()*+,-%$"
strcpysub[][]!%(hemistry '()*+,--%$"
strcpysub[][/]!%&radeep (hemistry%$"
strcpysub[][0]!%+ogether ith%$"
strcpysub[][4]!%&.ahaadur3t%$"
strcpysub[/][]!%6aths '()*+,-%$"
strcpysub[/][]!%6aths '()*+,--%$"strcpysub[/][/]!%6aths '7,-3t%$"
strcpysub[/][0]!%6aths '7,--%$"
strcpysub[/][4]!%*.7.8harma3t%$"
strcpysub[0][]!%9lemingo +etboo;%$"
strcpysub[0][]!%2istas +etboo;%$"
strcpysub[0][/]!%9lemingo '7%$"
strcpysub[0][0]!%2istas '73t%$"
strcpysub[0][4]!%olden uide%$"
strcpysub[4][]!%8umita =rora%$"
strcpysub[4][]!%+ogether ith%$"
strcpysub[4][/]!%)ergreen (??%$"
8/9/2019 ter Science Project File on Book Shop 2010 Exam
8/30
strcpysub[4][0]!%*ohit@uestionan;%$"
strcpysub[4][4]!%Asborne3t%$"
strcpys[]!%&hysics3t%$"
strcpys[]!%(hemistry3t%$"
strcpys[/]!%6aths3t%$"
strcpys[0]!%)nglish3t%$"
strcpys[4]!%(omputer 8cience%$"
B
B"
oid shoC$"
oid shoC/$"
class userlist
{public:
int no"
char users[][5]"
B"
class user
{
public:
int sbj[5][D]!totp!totr"
char passCord[/]"
oid shoCpb$
{
8/9/2019 ter Science Project File on Book Shop 2010 Exam
9/30
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
10/30
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
11/30
int crtusr$
{
clrscr$"
char name[5]!reply"
ifstream fi"
user u"userlist list"
fi.open%N8)*M-8+%$"fi.readchar F$
Hlist!siOeoflist$$"fi.close$"
iflist.noLLPP$
{ clrscr$"cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
12/30
ifname[i]LLE33ERRname[i]LLEJERRname[i]LLE:ERRname[i]LLEFERR
name[i]LLETERRname[i]LLE3%ERRname[i]LLEERR
name[i]LLERE$
{ clrscr$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
13/30
else{ goto page"B
setdefaultu$"
ofstream foname$"
fo.Critechar F$ Hu!siOeofu$$"fo.close$"
strcpylist.users[list.no]!name$"list.no??"
fo.open%N8)*M-8+%$"fo.Critechar F$
Hlist!siOeoflist$$"fo.close$"
clrscr$"cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
14/30
oid ch;usrlst$
{
ifstream usrlst"
usrlst.open%userlist%$"
ifSusrlst.good$$
{
ofstream fo%userlist%$"
userlist list"
list.noL"
fo.Critechar F$ Hlist!siOeoflist$$"
fo.close$"
B
usrlst.close$"
Boid ch;boo;lst$
{
ifstream boo;lst"int i!j"
boo;lst.open%boo;list%$"
ifSboo;lst.good$$
{
ofstream fo%boo;list%$"
user b;lst"
foriL"i
8/9/2019 ter Science Project File on Book Shop 2010 Exam
15/30
{
b;lst.sbj[i][j]L"
B
B
foriL"i
8/9/2019 ter Science Project File on Book Shop 2010 Exam
16/30
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
17/30
notificationguest$"
B
else
{
clrscr$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
18/30
clrscr$"
ofstream f%AAIM-8+%$"
f.Critechar F$ Hu!siOeofu$$"
f.close$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
19/30
clrscr$"
user u"subject s"ifstream finame$"int i"
fi.readchar F$ Hu!siOeofu$$"fi.close$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
20/30
else ifreplyLLEnERRreplyLLE'E${ return "B
else{ goto pagename"B
B
fi.readchar F$ Hu!siOeofu$$"fi.close$"
fi.open%N8)*M-8+%$"fi.readchar F$
Hlist!siOeoflist$$"fi.close$"
int flagL"
forint sL"s
8/9/2019 ter Science Project File on Book Shop 2010 Exam
21/30
else{ goto pagepass"B
B
page0: clrscr$"fi.open%AAIM-8+%$"
fi.readchar F$ Hb;lst!siOeofb;lst$$"fi.close$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
22/30
{
cout$
{
u.totp??"b;lst.totp??"u.sbj[][5]??"b;lst.sbj[][5]??"
u.sbj[][y]??"b;lst.sbj[][y],,"fo.open%AAIM-8+%$"
fo.Critechar F$ Hb;lst!siOeofb;lst$$"fo.close$"
fo.openname$"fo.Critechar F$ Hu!siOeofu$$"fo.close$"
clrscr$"cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
23/30
else
{
clrscr$"
cout$
{u.totr??"b;lst.totr??"u.sbj[][K]??"b;lst.sbj[][K]??"
u.sbj[][y],,"b;lst.sbj[][y]??"fo.open%AAIM-8+%$"
fo.Critechar F$ Hb;lst!siOeofb;lst$$"fo.close$"
fo.openname$"fo.Critechar F$ Hu!siOeofu$$"fo.close$"
clrscr$"cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
24/30
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
25/30
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
26/30
shoC/$"getch$"goto page0"
B
else ifreplyLLE'ERRreplyLLEnE${ goto page0"B
else{ goto page05"B
B
else ifreplyLLEKE$
{ page0K: clrscr$"
cout
8/9/2019 ter Science Project File on Book Shop 2010 Exam
27/30
else{ goto page0b"B
B
else{ goto page0"B
B
oid uppercasechar Fa$
{
forint iL"a[i]SLE3E"i??$
{
a[i]Ltouppera[i]$"
B
B
oid shoCuserlist$
{
clrscr$"int i"userlist list"ifstream fi%N8)*M-8+%$"fi.readchar F$ Hlist!siOeoflist$$"fi.close$"
foriL"i
8/9/2019 ter Science Project File on Book Shop 2010 Exam
28/30
ifstream fi%N8)*M-8+%$"fi.readchar F$
Hu!siOeofu$$"fi.close$"
foriL"i
8/9/2019 ter Science Project File on Book Shop 2010 Exam
29/30
Pro%essor : Penti* III
Ra* : 94 MB
+ar##isk : 20 /
S;37AR R8UIRD
;,eratin) syste* : 7in#o(s XP
3ro &
8/9/2019 ter Science Project File on Book Shop 2010 Exam
30/30
Cebsite : CCC.cppforschool.com
!!!."#$%&'()*+."',
!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',!!!."#$%&'()*+."',
http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/http://www.cbseportal.com/