Movie Video Shop Management System: Cover Page To The Project
Movie Video Shop Management System: Cover Page To The Project
SHOP
MANAGEMENT
SYSTEM
1
“MOVIE VIDEO SHOP MANAGEMENT
SYSTEM”
SUBMITTED BY:-
VAISHALI SINGH
REGISTRATION NO.:-548245
VAG INFOTECH
D-42
SOUTH EXT.PART-I NEW DELHI
PIN-110049
ACKNOWLEDGEMENT
2
Development of project like “MOVIE VIDEO SHOP
MANAGEMENT SYSTEM” in Object Oriented Programming
Language i.e. in C++is not much difficult but it requires a thorough
reading about the database files .This language is provides generic
facilities which is an important construct for supporting
reusability.Applications of OOP technology has gained importance
in almost all areas of computing including real –time business
systems.
VAISHALI SINGH
DOEACC ‘A’ LEVEL
REGISTRATION NO –548245
PROJECT CERTIFICATE
3
Signature of guide/Supervision
Name:
Place: New Delhi
Designation:
Dated:
Address: *********
4
3] Title of the project - MOVIE VEDIEO SHOP
MANAGEMENT SYSTEM
DATE:
TABLE OF CONTENT
5
C) PERT CHART…………………………………………………….…33
10. SYSTEM REQUIREMENT ANALYSIS……………………………………34
11. DATABASE INTRODUCTION……………………………………………..36
12. HARDWARE & SOFTWARE……………………………………………….37
13. USER REQUIREMENT&OPERATIONAL MANUAL.................................38
14. DATA DICTIONARY………………………………………………………..39
15. SOURCE CODE……………………………………………………………....40
16. INPUT-OUTPUT SCREEN…………………………………………………...78
17. SCOPE & RESULT DISCUSSION…………………………………………...87
18. MAIN ACHIEVEMENT OF THE SYSTEM…………………………………88
19. LIMITATIONS………………………………………………………………...89
20. CONCLUSION………………………………………………………………...90
21. REFERENCES…………………………………………………………………91
A) BIBLIOGRAPHY…………………………………………………….91
B) WEBSITE SEARCHED………………………………………………92
22. THANKS……………………………………………………………………….93
6
OBJECTIVE AND SCOPE OF THE PROJECT
A short and simple project made for managing a movie video shop. As we
are aware that generally movie video shops keep variety of video cassettes
and some customer take it use the cassettes and then return back .This
software would enable the shopkeeper in managing the shop at an ease .
Searching customer status is easy and then entering his record also doesn’t
require much effort .He can also know about the business of his particular
movie video. If required this software can be modified to handle huge
database too.
7
Provides flexibility to the system.
Output obtained is easily understood.
User does not require too much training for using this software.
THEORETICAL BACKGROUND
8
PROBLEM DEFINITION
It is the first and perhaps most vital step the system studies. After all, people
must recognize what the need of the problem exists before they can create a
solution. This need leads to the preliminary survey or an initial investigation
to determine whether an alternative system can solve the problem. It entails
looking into duplication of efforts, bottlenecks and inefficient existing
procedures. If the existing is not a computerize system, that thinks whether
parts or whole system would be candidates for computerization. A clear or
accurate problem definition one that’s not open to misinterpretation by
people with different background isn’t easy to prepare. This preliminary
survey is often done with participation of the person who is most familiar
with existing methods to make suggestions for improvement and to
personally benefit for the change.
9
10
SYSTEM CONCEPT:-
Technological factor:-
People have never before in a time when the scope of
scientific enquiry was so broad, or the speed of applying new
technology accounts for many changes in the organization.
11
In response to technological, socio-economical factors Top-
level officers may get details of the organization as and when
required.
1. Problem Definition
2. Feasibility study
3. System Analysis
4. System Design
5. Implementation
6. Post implementation
7. Maintenance
PROBLEM DEFINITION:-
It is the first and perhaps most vital step the system studies. After all, people
must recognize what the need of problem exists before they can create a
solution .This need leads to the preliminary survey or an initial investigation
to determine whether an alternative system can solve the problem. It entails
looking into duplication of efforts, bottlenecks and inefficient existing
procedures. If the existing is not a computerize system, that thinks whether
parts or whole system would be candidates for computerization. A clear or
12
accurate problem definition one that’s not open to misinterpretation by
people with different background isn’t easy to prepare. This preliminary
survey is often done with participation of the person who is most familiar
with existing methods to make suggestions for improvement and to
personally benefit for the change.
FEASIBILITY STUDY:-
13
ANALYSIS:-
14
the cost of the processing these and other matters were
checked.
What input data are used to produce output results the source,
from and volume of input, the accuracy of input, and the
inputs costs were also found out.
Questionnaire
Interviews and Observations
DESIGN:-
The most creative and challenging phase of the system life cycle is System
Design .It describe the final system and the process by which it is
15
developed .It refers to the technical specifications that will be applied in
implementing the system. It also includes the construction of the programs
and program testing.
First step is to determine how the output is to be produced and in what
formats. Second, the input data and master files (databases) have to be
designed to meet the requirements of the proposed outputs. The operational
phases are handled through program constructions. And testing, including a
list of the programs needed to meet the system objectives and complete the
documentation.
A final report is prepared which includes procedural flow charts, record
layouts and workable plan for implementing the propose system.
IMPLEMENTATION:-
The implementation less creative than design .It is primarily concerned with
user training, site preparation, and file conversion .During a final testing, use
acceptance is tested, followed by user trading depending upon the nature of
the system. The user testing can be of following types:-
Alpha testing
Beta testing
White box testing
Black box testing
These testing methods are implemented in order to gather the information
how the system or software created is functioning. These testing methods are
also post- implemented so that normal user is also able to give his opinion.
Like any other system ,there is an aging process that required periodic
maintenance of hardware and software .If the new information is
inconsistent with the design specification ,being changes have to be made.
Hardware also requires periodic maintenance to keep in tune with design
specification. The importance of maintenance is to continue top bring the
new system to standards. The system or software developed starts creating
16
problem after a long use this can be avoided by the techniques used. It
facilitates not only in maintenance but also helps in knowing the user
requirements and then developing a system according to user’s choice. After
all end users are the actual tester’s and beneficier’s.
EXISTING SYSTEM:-
INTRODUCTION
This existing system was a manual one .What ever be the process involved
in system were done through register (files).There were lots of complexities
involved in that system .Every time when new customer came the
information regarding him was entered in the different files and registers.
When some enquiry about some customer were made or some business
report were generated regarding customer it takes time for the same, these
thing are very tedious and cumbersome.
REQUIREMENT ANALYSIS
17
The demonstration of the requirement thus necessitated studying the existing
system to find out what these requirements were. Interview technique was
used to collect the information from individual or group to find out the
problem with the existing system or to extract new ideas regarding the
proposed system.
In the existing system all the office work was done manually. The manual
work process was time consuming; hence work was a bit slow.
Following are the main drawbacks of the existing system.
18
Maintenance of voluminous data is very cumbersome and
laborious job.
The manual jobs such as calculation are more error prone.
There are plenty of chances of duplicity of data and information.
Updating is very tedious job.
There is no central database from where one can get different
statistical data at one place.
The above facts, figures and drawbacks clearly indicate that there is need for
computerization .After a long drawn discussion it was decided to
computerize the MOVIE VIDEO SHOP SYSTEM.
Since the existing system was totally manual which has lot of complexities,
shortcoming in itself and all the data was being stored in registers, files etc.
Keeping in mind the above limitations of the existing system, the new
computerized system was needed, so that information can be provided to the
user more quickly, easily and more accurately.
19
Information of the proposed system
20
The proposed system named “MOVIE VIDEO SHOP MANAGEMENT
SYSTEM” is aimed to enhance the process of management and view the
whole system as centralized system to maintain the flexibility in operating
the desired system.
21
22
23
FLOWCHART
24
25
26
27
DATA FLOW DIAGRAM
User Application
1.3 Business
Of
Movie
1.1
Customer
SYSTEM 1.4 View
Data Database
1.5
1.2 Searching
Return Record
movie
28
29
30
31
32
33
PERT CHART
Functional Requirement
34
The software must be GUI software, which should be
interactive and user friendly and the inter face should be self –descriptive.
Before using the software the user should be given training for better use of
the software. The training period must be less. The system should have some
sort of security mechanism like password protection to avoid unauthorized
access to the database.
Software Requirement
Hardware Requirement
35
WHAT IS A DATABASE?
36
One of the useful things about a database is that, unlike a telephone book, it
not only stores data, it allows us to sort and manipulate the information as
desired.
ELEMENTS OF A DATABASE
Hardware specification
RAM 256MB
HARD DISK 40GB
37
CPU TYPE Pentium-IV
Software specification
USER REQUIREMENTS
Users for their assistance in running the project successfully must have the
following necessities.
conditions.
OPERATIONAL MANUAL:-
First time video.cpp file is loaded in C:\ from CD and after that the
video.exe file is an exe of my project when this exe is run the first file of my
project is loaded.
The user is required to choose the options according to his choice. Then the
works begins.
39
DATA DICTIONARY
CUSTOMER TABLE
VIDEO TABLE
40
/**************************************************************/
/***************************CODE BEGINS*********************/
/*************************************************************/
/*****************S O U R C E C O D E************************/
41
/**********************************HEADER
FILES********************************/
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<bios.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<fstream.h>
#include<ctype.h>
#include<math.h>
#include<time.h>
#include<iomanip.h>
#include<process.h>
#define dash "º"
#define dash2 "Ã?"
/****************************END HEADER FILES************************/
struct videoshop
{
char name[35];
int id;
char type[20];
}film[30];
struct customer
{
char status[15];
char names[25];
char tel[9]; //variable declaration
char address[90]; //in terms of structures
}person[20];
42
{
char nam [20];
char tele [20];
char plc [20];
int f_id ;
char flm [20];
char f_tp [20];
char dte [20];
char tme [20];
char stat [20];
char stat1 [20];
}p[30];
struct sport
{
int check;
char c_nam[20];
char r_d [20];
char r_t [20]; //for return movie
}d[30];
struct final
{
int arr ;
char c_n[20];
char date[20];
char time [20];
}per[30];
/******************************Prototypes********************************/
void box(void);
void dev(void);
43
void lbyl(char a[50]);
void graph();
void words(char a[25],char b[30]);
void graph();
void intro();
void password();
void check1(void);
};
/**************************END password security********************/
44
/***************************Final Screen*****************************/
void man()
{
int d=DETECT,m,i;
initgraph(&d,&m,"c:\\tc\\bgi" );
settextstyle(7,0,7);
randomize();
for(i=0;i<5800;i++)
putpixel(random(800),random(600),random(15)+1);
outtextxy(10,150," See you again!");
getch();
closegraph();
}
for(int ff=10;ff<255;ff++)
{
settextstyle(10,0,5);
setcolor(LIGHTGREEN );
outtextxy(ff*24,85,"ÛÛÛÛÛ.");
setcolor(BLACK);
delay(1);
outtextxy(ff*24 ,85,"ÛÛÛÛÛ.");
}
setcolor(YELLOW);
settextstyle(7,0,6);
outtextxy(100,100,a);
settextstyle(7,0,6);
delay(500);
setcolor(LIGHTGREEN);
outtextxy(100,100,a);
setcolor(YELLOW);
settextstyle(7,0,6);
outtextxy(70,180,b);
45
for(ff=10;ff<255;ff++)
{
settextstyle(10,0,5);
setcolor(LIGHTGREEN );
outtextxy(ff*24,170,"ÛÛÛÛÛ.");
setcolor(BLACK);
delay(1);
outtextxy(ff*24 ,170,"ÛÛÛÛÛ.");
}
setcolor(YELLOW);
settextstyle(7,0,6);
outtextxy(70,180,b);
settextstyle(7,0,6);
delay(500);
setcolor(LIGHTGREEN);
outtextxy(70,180,b);
setcolor(RED);
for(int li=70;li<600;li++)
{
delay(4);
outtextxy(li,194,".");
}
while(!kbhit())
{
settextstyle(11,0,2);
for(int bv=10;bv<255;bv++)
{
setcolor(LIGHTGREEN);
outtextxy(bv*4,300,"ÛÛÛÛ");
setcolor(BLACK);
delay(2);
outtextxy(bv*4 ,300,"ÛÛÛÛ");
}
settextstyle(11,0,2);
setcolor(GREEN);
outtextxy(400+50,300,"Press Any Key");
delay(300);
setcolor(LIGHTGREEN);
outtextxy(400+50,300,"Press Any Key");
46
setcolor(RED);
outtextxy(510+50,300,">");
delay(80);
outtextxy(515+50,300,">");
delay(80);
outtextxy(520+50,300,">");
setcolor(GREEN);
outtextxy(510+50,300,">");
delay(80);
outtextxy(515+50,300,">");
delay(80);
outtextxy(520+50,300,">");
}
}
/************************to Hold***************************************/
void lbyl(char a[50])
{
int l,i;
l=strlen(a);
for (i=0;i<l;i++)
{
delay(120);
cout<<a[i];
}
}
/************************GRAPHICS DESIGNED**************************/
void fx()
{
clrscr();
graph();
int i,y;
if(x==639)
{
47
gotoxy(31,13);
lbyl("Vaishali's Paradise Softwares");
gotoxy(38,15);
lbyl("Presents");
gotoxy(29,17);
lbyl("Movie video Software");
delay(1300);
}
}
for(i=0;i<2000;i++)
putpixel(random(640),random(480),random(15)+1);
settextstyle(7,0,7);
setcolor(16);
delay(1200);
for(i=-10;i<=150;i+=2)
{
setcolor(x);
outtextxy(i,100,"WEL");
setcolor(y);
if(i<150)
outtextxy(i,100,"WEL");
}
for(i=600;i>=330;i-=2)
{
setcolor(x);
outtextxy(i,100,"OME");
48
setcolor(y);
if(i>330)
outtextxy(i,100,"OME");
}
for(i=-20;i<=100;i+=4)
{
setcolor(x);
outtextxy(290,i,"C");
setcolor(y);
if(i<100)
outtextxy(290,i,"C");
}
delay(1500);
setcolor(16);
for(i=-10;i<=370;i=i+2)
{
setcolor(x);
outtextxy(i,180,"T");
setcolor(y);
if(i<370)
outtextxy(i,180,"T");
}
for(i=600;i>400;i=i-2)
{
setcolor(x);
outtextxy(i,180,"O");
setcolor(y);
if(i>400)
outtextxy(i,180,"O");
}
setcolor(x);
outtextxy(400,180,"O");
delay(2500);
clearviewport();
settextstyle(7,0,7);
49
setbkcolor(BLACK);
for(i=-10;i<316;i++)
{
setcolor(3);
outtextxy(i,100,"Movie");
setcolor(16);
if(i<316)
outtextxy(i,100,"Movie");
}
for(i=460;i>220;i--)
{
setcolor(2);
outtextxy(100,i,"Video");
setcolor(16);
if(i>220)
outtextxy(100,i,"Video");
}
for(i=600;i>150;i--)
{
setcolor(5);
outtextxy(i,350,"Software");
setcolor(16);
if(i>150)
outtextxy(i,350,"Software");
}
cleardevice();
closegraph();
}
/**************************MESSAGE DISPLAY********************/
50
{
int l,i,j;
char f1[10];
l=strlen(a);
if(l<strlen(b))
l=strlen(b);
if(l<strlen(c))
l=strlen(c);
if(l<strlen(d))
l=strlen(d);
if(l<strlen(e))
l=strlen(e);
if(l<strlen(f))
l=strlen(f);
l+=4;
textbackground(back);
for(i=1;i<l+2;i++)
for(j=1;j<lines+4;j++)
{
gotoxy(i+x,j+y);
cputs(" ");
}
gotoxy(x,y);
cputs("É");
for(i=x+1;i<l+x+1;i++)
{
gotoxy(i,y);
cputs("Í");
gotoxy(i,y+lines+3);
cputs("Í");
}
gotoxy(x+1+l,y);
cputs("»");
for(i=y+1;i<lines+4+y;i++)
{
gotoxy(x,i);
cputs("º");
51
gotoxy(x+l+1,i);
cputs("º");
}
gotoxy(x,y+lines+3);
cputs("È");
gotoxy(x+l+1,y+lines+3);
cputs("¼");
j=l-strlen(a);
j=j/2;
gotoxy(j+x+1,++y);
cputs(a);
j=l-strlen(b);
j=j/2;
gotoxy(x+j+1,y+1);
cputs(b);
j=l-strlen(c);
j=j/2;
gotoxy(x+j+1,2+y);
cputs(c);
j=l-strlen(d);
j=j/2;
gotoxy(x+j+1,3+y);
cputs(d);
j=l-strlen(e);
j=j/2;
gotoxy(x+j+1,4+y);
cputs(e);
j=l-strlen(f)-3;
j=j/2;
gotoxy(x+j+1,y+lines+1);
strcat(f1," ");
strcat(f1,f);
strcat(f1," ");
textbackground(BLACK);
cputs(f1);
textcolor(BLACK);
for(i=0;i<lines+3;i++)
{
gotoxy(x+l+2,i+y);
cputs("Û");
}
52
for(i=1;i<l+3;i++)
{
gotoxy(x+i,y+lines+3);
cputs("ß");
}
}
/*********** end ****************/
53
for(ctr=23;ctr>=2;ctr--)
{
gotoxy(80,ctr);
delay(12);
cout<<dash;
}
gotoxy(80,1);
cout<<"Â";
for(ctr=79;ctr>=1;ctr--)
{
gotoxy(ctr,1);
delay(12);
cout<<dash2;
}
gotoxy(1,1);
cout<<"Ã?"; //ctrl+alt 201 Ã?(478)
for(ctr=2;ctr<=23;ctr++)
{
gotoxy(1,ctr);
delay(12);
cout<<dash;
}
gotoxy(1,24);
cout<<"Ã?"; //ctrl+alt
}
/*********************************End Box Function*********************/
/*************************************test******************************/
void s_customer_no()
{
clrscr();
ifstream infile;
infile.open("file1.txt",ios::binary); //opens a file and reads
infile.seekg(0,ios::end);
int n= (int)infile.tellg()/ sizeof(person);
cout<<"there are "<<n<<" customers database\n";
int key;
cout<<"enter the customer no u want to search(1 to "<<n<<") : ";
cin>>key;
int c1,c2;
c1=0,c2=0;
for (int j=0;j<n;j++)
{
54
if(j+1==key)
{
c1=1,c2=100;
cout<<"\n Customer No : \t\t"<<j+1;
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(j*sizeof(person));
infile.read((char*)&p[j],sizeof (person));
cout<<"\n Customers Name :"<<p[j].nam;
cout<<"\n Telephone No :\t "<<p[j].tele;
cout<<"\n Address : \t"<<p[j].plc;
cout<<"\n Film id :\t "<<p[j].f_id;
cout<<"\n Film name :\t "<<p[j].flm;
cout<<"\n Film type :\t"<<p[j].f_tp;
cout<<"\n Issue date :\t "<<p[j].dte;
cout<<"\n Issue time :\t "<<p[j].tme;
int l1=0,l2=0;
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(0,ios::end);
int s=(int)in.tellg()/ sizeof(sport);
for (int l=0;l<s;l++)
{ ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(l*sizeof(sport));
in.read((char*)&d[l],sizeof (sport));
if(((d[l].check-1)==j) &&strcmp(d[l].c_nam,p[j].nam)==0)
{
cout<<"\n Film status :\t "<<p[j].stat1;
cout<<"\n Return Date :\t "<<d[l].r_d;
cout<<"\n Return Time :\t "<<d[l].r_t;
l1=2;l2=4;
break;
}
}
if(l1==l2)
cout<<"\n Film status :\t "<<p[j].stat;
cout<<"\n search ends"<<endl;
cout<<endl;
getch();
}
}
55
if(c1==c2)
cout<<"customer no not in data"<<endl;
cout<<"press any key to return to main menu"<<endl;
getch();
}
void B_video()
{
clrscr();
int vidno;
cout<<"\nEach video carries a worth of Rs 20 "<<endl;
cout<<"\n\tEnter the ID # of the video (1-30)";
cin>>vidno;
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(0,ios::end);
int z= (int)infile.tellg()/ sizeof(person);
int k=0,max;
if(strcmp(film[vidno-1].name,p[j].flm)==0)
{
k++;
}
}
cout<<"\n\tThe film "<<film[vidno-1].name<<" of type "<<\
film[vidno-1].type<<" has got business of rupees "<< k*20;sleep(4);
}
void R_video()
{
clrscr();
int j=0;
56
int cid;
char ch;
char cnam[20];
fflush(stdin);
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(0,ios::end);
int n= (int)infile.tellg()/ sizeof(person); //reads from specified file
ofstream out;
out.open("fold1.txt",ios::app|ios::binary);
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(0,ios::end);
int s=(int)in.tellg()/ sizeof(sport);
if(s>0)
{
for (int l=0;l<s;l++)
{
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(l*sizeof(sport));
in.read((char*)&d[l],sizeof (sport));
if(strcmp(d[l].c_nam,cnam)==0&&(cid==d[l].check))
{
cout<<"Already Entered "<<endl;
cout<<"Press Any Key TO Return TO Main Menu "<<endl;
getch();
goto k;
}
}
}
57
for (;j<n;j++)
{
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(j*sizeof(person));
infile.read((char*)&p[j],sizeof (person));
if(strcmp(p[j].nam,cnam)==0&&(cid==j+1))
goto w;
else
{
if(j==(n-1))
{
cout<<"Customer Not In Data"<<endl;
cout<<"Press Any Key TO Return TO Main Menu "<<endl;
getch();
goto k;
}
else
continue;
}
}
w:
d[che].check =cid;
strcpy(d[che].c_nam,cnam);
_strdate(rdate);_strtime(rtime);
strcpy(d[che].r_d,rdate);
strcpy(d[che].r_t,rtime);
out.write((char*)&d[che],sizeof(sport));
che++;
cout<<"Your Film Has Been Returned:"<<endl;
cout<<"Press Any Key To Return To Main Menu"<<endl;
getch();
k:
}
58
void V_data()
{
clrscr();
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(0,ios::end);
int n= (int)infile.tellg()/ sizeof(person);
infile.seekg(j*sizeof(person));
infile.read((char*)&p[j],sizeof (person));
cout<<"\n Customers name : "<<p[j].nam;
cout<<"\n Telephone no :\t "<<p[j].tele;
cout<<"\n Address : \t "<<p[j].plc;
cout<<"\n Film id : \t "<<p[j].f_id;
cout<<"\n Film name : \t "<<p[j].flm;
cout<<"\n Film type : \t "<<p[j].f_tp;
cout<<"\n Issue date :\t "<<p[j].dte;
cout<<"\n Issue time :\t "<<p[j].tme;
int l1=0,l2=0;
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(0,ios::end);
int s=(int)in.tellg()/ sizeof(sport);
for (int l=0;l<s;l++)
{
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(l*sizeof(sport));
in.read((char*)&d[l],sizeof (sport));
if(((d[l].check-1)==j) &&strcmp(d[l].c_nam,p[j].nam)==0)
{
cout<<"\n Film status :\t "<<p[j].stat1;
cout<<"\n Return Date :\t "<<d[l].r_d;
59
cout<<"\n Return Time :\t "<<d[l].r_t;
l1=2;l2=4;
break;
}
}
if(l1==l2)
cout<<"\n Film status :\t "<<p[j].stat;
cout<<endl;
cout<<"\nPress any key to see next data"<<endl;
getch();
}
cout<<"\nThere is no more data to show"<<endl;
cout<<"press any key to return to main menu"<<endl;
getch();
}
void main(void) //main function
{
int i;
menu m_menu;
m_menu.password();
dev();
fx();
clrscr();
/*************************GRAPHICS OUTPUT********************/
clrscr();
int chv;
i=0;
/***************************NAMES OF MOVIES**************/
strcpy(film[0].name,"mummy returns");
strcpy(film[0].type,"english");
film[0].id=1;
strcpy(film[1].name,"rush hour");
strcpy(film[1].type,"english");
film[1].id=2;
strcpy(film[2].name,"spy kids");
strcpy(film[2].type,"english");
film[2].id=3;
60
strcpy(film[3].name,"proof of life");
strcpy(film[3].type,"english");
film[3].id=4;
strcpy(film[4].name,"15 minutes");
strcpy(film[4].type,"english");
film[4].id=5;
strcpy(film[5].name,"Tomb raider");
strcpy(film[5].type,"english");
film[5].id=6;
strcpy(film[7].name,"replicant");
strcpy(film[7].type,"english");
film[7].id=8;
strcpy(film[8].name,"MI 2");
strcpy(film[8].type,"english");
film[8].id=9;
strcpy(film[9].name,"Batman");
strcpy(film[9].type,"english");
film[9].id=10;
strcpy(film[10].name,"Replacement Killer");
film[10].id=11;
strcpy(film[10].type,"english");
strcpy(film[13].name,"titanic");
film[13].id=14;
61
strcpy(film[13].type,"english");
strcpy(film[17].name,"America's Sweetheart");
film[17].id=18;
strcpy(film[17].type,"english");
strcpy(film[18].name,"Con Air");
film[18].id=19;
strcpy(film[18].type,"english");
strcpy(film[19].name,"Road trip");
film[19].id=20;
strcpy(film[19].type,"english");
strcpy(film[21].name,"artifical intelligence");
film[21].id=22;
strcpy(film[21].type,"english");
strcpy(film[22].name,"final fantasy");
film[22].id=23;
strcpy(film[22].type,"english");
strcpy(film[23].name,"the score");
film[23].id=24;
strcpy(film[23].type,"english");
62
strcpy(film[24].name,"planet of the apes");
film[24].id=25;
strcpy(film[24].type,"english");
strcpy(film[25].name,"made");
film[25].id=26;
strcpy(film[25].type,"english");
strcpy(film[26].name,"dragon");
film[26].id=27;
strcpy(film[26].type,"english");
strcpy(film[28].name,"hannibal");
film[28].id=29;
strcpy(film[28].type,"english");
strcpy(film[29].name,"speed");
film[29].id=30;
strcpy(film[29].type,"english");
f:
clrscr();
int c1,c2,c3,c4,c5,c6,c1b,c2b,c3b,c4b,c5b,c6b;
int move = 1;
char ch;
do
{
clrscr();
63
textbackground(BLUE);
textcolor(LIGHTRED|BLINK);
cprintf(" SELECT FROM THE FOLLOWING OPTIONS ");
textbackground(BLACK);
textcolor(YELLOW);
cprintf(" *#*");
printf("\n\t ");
cprintf("*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*");
cout<<"\n\n\n";
64
sound(1000); delay(10);nosound();
}
while (ch != 13);
sound(1000); delay(200);
sound(2000); delay(200); nosound(); // for sound output
int choice;
do
{
choice=move;
switch(choice)
{
case 1:
{
clrscr();
if(i<60)
{
fflush(stdin);
cout<<"\n\nEnter your name :";
gets(person[i].names);
ofstream outfile;
outfile.open("file1.txt",ios::app|ios::binary);
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(0,ios::end);
int z= (int)infile.tellg()/ sizeof(person);
if(z>0)
{
ofstream out;
out.open("fold1.txt",ios::app|ios::binary);
ifstream in;
//for customer with same name
in.open("fold1.txt",ios::binary);
in.seekg(0,ios::end);
int s=(int)in.tellg()/ sizeof(sport);
if(s>0)
{
struct sign
65
{int a;
char b[30];
}pk[30];
int m=0;
for(int k=0;k<z;k++)
{
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(k*sizeof(person));
infile.read((char*)&p[k],sizeof (person)); // reads data
if(strcmp(person[i].names,p[k].nam)==0)
{
strcpy(pk[m].b,p[k].nam);
pk[m].a=k+1;
m++;
}
}
int r=0;
for( k=0;k<m;k++)
for(int y=0;y<s;y++)
{
ifstream in;
in.open("fold1.txt",ios::binary);
in.seekg(y*sizeof(sport));
in.read((char*)&d[y],sizeof (sport));
if(strcmp(pk[k].b,d[y].c_nam)==0&&pk[k].a==d[y].check)
r++;
}
if(r==m)
goto e;
else
{
cout<<"film not returned by the customer"<<endl;
cout<<"press any key to return to main menu"<<endl;
getch();
goto f;
}
}
if(s<=0)
66
{
for(int k=0;k<z;k++)
{
ifstream infile;
infile.open("file1.txt",ios::binary);
infile.seekg(k*sizeof(person));
infile.read((char*)&p[k],sizeof (person));
if(strcmp(person[i].names,p[k].nam)==0)
{
cout<<"film not returned"<<endl;
cout<<"press any key to return to main menu"<<endl;
getch();
goto f;
}
else
goto e;
}
}
}
e:
cout<<"\nEnter telephone number :";
gets(person[i].tel);
cout<<"\nEnter Address :";
gets(person[i].address);
cout<<"\n\nPress Any Key TO View The Movies Names ";
getch();
clrscr();
int st=0;
for(int zt=0;zt<20;zt+=2)
{
gotoxy(3,zt+3);
cout<<st+1<<"] " <<film[st].name;
st++;
}
st=10;
67
for( zt=0;zt<20;zt+=2)
{
gotoxy(25,zt+3);
cout<<st+1<<"] " <<film[st].name;
st++;
}
st=20;
for( zt=0;zt<20;zt+=2)
{
gotoxy(50,zt+3);
cout<<st+1<<"] " <<film[st].name;
st++;
}
ifstream infil;
68
infil.open("file1.txt",ios::binary);
infil.seekg(0,ios::end);
int n= (int)infil.tellg()/ sizeof(person);
cout<<"Data has been stored for customer no "<<n+1;
sleep(2);
i++;
goto f;
}
}
case 2:
{
R_video();goto f;
}
case 3:
{
B_video();goto f; // goto function causes the control to
// move to main menu
}
case 4:
{
V_data();goto f;
}
case 5:
{
s_customer_no();goto f;
}
}
}
while(choice!=6);
/************************************end test***************************/
/******************************Month calculate*************************/
void out()
{
clrscr();
box();
69
gotoxy(25,10);
textbackground(BLUE);
textcolor(WHITE+BLINK);
cout<<"You were using Software created by";
gotoxy(27,12);
cprintf("Vaishali Singh Software Company Ltd. ");
gotoxy(25,14);
cout<<" New Delhi, India";
textbackground(BLACK);
textcolor(WHITE);
delay(5000);
exit(1);
}
void menu::check1(void)
{
int s=0,r=0,c=0,d=0,a=0;
while(1)
{
clrscr();
if(c==3 || d==3)
{
cout<<"\t\t\tLOGIN FAILED"<<endl;
cout<<"please wait until exit.";
for(a=0;a<50;a++)
{
delay(50);
cout<<".";
}
out();
exit(1);
}
else
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"\t\t\tUSER ID:";
cin>>tid;
if(strcmp(stu,tid)==0 ||strcmp(astu,tid)==0)
{
cout<<endl<<"\t\t\tPASSWORD:";
char ch;
int i=0;
70
while((ch=getch())!=13)
{
tpwd[i]=ch;
i++;
cout<<"*";
}
tpwd[i]='\0';
//cin>>tpwd;
c++;
if(strcmp(stu,tid)==0)
{
for(r=0;tpwd[r]!='\0';r++)
tpwd[r]=tpwd[r]-1;
if(strcmp(tpwd,pwd)==0)
break;
else
{
cout<<"\n\t\t\tincorrect password";
getch();
continue;
}
}
if(strcmp(astu,tid)==0)
{
for(s=0;tpwd[s]!='\0';s++)
tpwd[s]=tpwd[s]+2;
if(strcmp(tpwd,apwd)==0)
break;
else
{
cout<<"\n\t\t\tincorrect password";
getch();
continue;
}
}
else
{
cout<<"\t\t\tINVALID ID,try again";
71
getch();
continue;
}
}
else
{
d++;
if(c==3 || d==3)
{
clrscr();
cout<<"\t\t\tLOGIN FAILED"<<endl;
cout<<"please wait until exit.";
for(a=0;a<50;a++)
{
delay(50);
cout<<".";
}
out();
exit(1);
}
cout<<"\t\t\tINVALID ID ,try again";
getch();
continue;
}
}
}
/******************************end of checking***************************/
/************************Secondary Presentation****************************/
void menu::intro(void)
{
clrscr();
box();
gotoxy(25,7);
cout<<" W E L C O M E T O";
gotoxy(25,12);
textcolor(WHITE + BLINK);
cprintf(" M o v i e V i d e o");
textcolor(WHITE);
gotoxy(40,16);
72
cout<<"Compilied By :";
gotoxy(40,18);
textcolor(WHITE + BLINK);
cprintf("Viashali Singh");
textcolor(WHITE);
delay(4000);
}
/************************END***************************************/
/
************************************BOX1******************************
*****/
void box(void)
{
int ctr;
for(ctr=17;ctr<=64;ctr++)
{
gotoxy(ctr,20);
delay(12);
cout<<dash2;
}
gotoxy(65,20);
cout<<"¼";
for(ctr=19;ctr>=5;ctr--)
{
gotoxy(65,ctr);
delay(12);
cout<<dash;
}
gotoxy(65,4);
cout<<"Â";
for(ctr=64;ctr>=17;ctr--)
{
gotoxy(ctr,4);
delay(12);
cout<<dash2;
}
gotoxy(16,4);
cout<<"Ã?";
for(ctr=5;ctr<=19;ctr++)
73
{
gotoxy(16,ctr);
delay(12);
cout<<dash;
}
gotoxy(16,20);
cout<<"Ã?";
}
/
***********************************END********************************
******/
void menu::password(void)
{
menu m;
m.check1();
char *pass,ch;
int flag=0;
for(int k=0;k<3;k++)
{
clrscr();
box();
gotoxy(25,12);
pass=getpass("Retype your Password : ");
if(strcmp(pass,"student")==0)
{
flag=1;
break;
}
else
{
gotoxy(30,25);
textbackground(BLUE);
textcolor(WHITE+BLINK);
cprintf(" Try Your Password Again\a ");
delay(1000);
textbackground(BLACK);
textcolor(WHITE);
//gotoxy(40,12);
//clreol();
continue;
}
}
74
if(flag==0)
{
char mess[]={"To become authorise user please contact to Vaishali Singh"};
clrscr();
for(int i=15,j=0;mess[j]!='\0';j++,i++)
{
gotoxy(i,3);
delay(30);
cout<<mess[j];
}
delay(1000);
box();
gotoxy(28,12);
cout<<"Have a nice day";
gotoxy(30,14);
textbackground(YELLOW);
textcolor(BLUE+BLINK);
cprintf(" Good Bye.....!! ");
textbackground(BLACK);
textcolor(WHITE);
delay(3000);
exit(1);
}
else
{
}
//textbackground(WHITE);
}
75
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
76
1.Input Customer Data
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program
OPTION SELECTED :- 1
77
Press Any Key TO View The Movie’s Name
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
78
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program
OPTION SELECTED:2
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
79
1.Input Customer Data
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program
OPTION SELECTED:3
The Film [film name] Of type English Has Got Business Of Rupees 40
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
80
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program
OPTION SELECTED:4
Customer no:2
Customer name:Surbhi
Telephone no:99311347875
Address:sector -6
Film ID:1
Film name :mummy returns
Film Type: English
Issue Date:06/01/06
Issue Time:10:07:30
Film Status: not returned
81
Press any key to return to see next data
Customer no:3
Customer name:Aditya
Telephone no:06542 232038
Address:sector -IX
Film ID:10
Film name :Batman
Film Type: English
Issue Date:06/19/06
Issue Time:13:17:30
Film Status: returned
Return Date:06/22/06
Return Time:18:01:45
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
OPTION SELECTED:5
82
Customer no:1
Customer name:aparana
Telephone no:9931160877
Address:c-4,city center
Film ID:10
Film name :Batman
Film Type: English
Issue Date:06/19/06
Issue Time:13:17:30
Film Status: returned
Return Date:06/22/06
Return Time:18:01:45
Search ends
SOFTWARE
*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
OPTION SELECTED:6
83
USE UP & DOWN ARROW KEYS FOR SELECTION
/*********************************************************************/
Introduction:
Even the best systems developed have some flaws or others .There always
exist scope of further improvement in the system .The effect of
implementation of new computerized system is found remarkable.
The following are the major improvement of new system over the existing
system.
84
business ,returning the product and searching information with great
ease.
All the operation is carried out automatically preventing a lot of
manual work.
Additional check has also been incorporated into the system to avoid
duplication of data as far as possible and fulfill some requirements.
85
LIMITATIONS
86
CONCLUSION
Lastly I would like to conclude my Project with the hope that the approach
made by me is able to fulfill the user requirement .
Thanks to everyone associated with this project.In my opinion I have tried
my best to give a short and simple approach to fulfill the needs but, it can
also be modified to have better software which can fulfill the left out
requirements and over come the limitations illustrated above.
87
REFERENCES
BIBLIOGRAPHY:
88
2]How to program C++
--Deitel and Deitel
4]LET US C++
-- Yashavant P. Kanetkar
WEBSITE SEARCHED:-
1]www.inox.com
2]www.planetm.com
3]www.timesmusic.com
4]www.google.com
5]www.altavista.com
89
6]www.hotbot.com
90
91