0% found this document useful (0 votes)
46 views91 pages

Movie Video Shop Management System: Cover Page To The Project

This document provides an overview of a project to develop a movie video shop management system. It includes sections on acknowledgements, project certification, submission of the student project proposal, table of contents, introduction including objectives and scope, theoretical background, problem definition, and system analysis including concept, existing system, and proposed system. The project aims to develop a software system to enable a shopkeeper to easily manage operations like searching for customer information and records.

Uploaded by

Sampat Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views91 pages

Movie Video Shop Management System: Cover Page To The Project

This document provides an overview of a project to develop a movie video shop management system. It includes sections on acknowledgements, project certification, submission of the student project proposal, table of contents, introduction including objectives and scope, theoretical background, problem definition, and system analysis including concept, existing system, and proposed system. The project aims to develop a software system to enable a shopkeeper to easily manage operations like searching for customer information and records.

Uploaded by

Sampat Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 91

MOVIE VIDEO

SHOP

MANAGEMENT

SYSTEM

COVER PAGE TO THE PROJECT

1
“MOVIE VIDEO SHOP MANAGEMENT
SYSTEM”

SUBMITTED BY:-
VAISHALI SINGH
REGISTRATION NO.:-548245

Under the guidance of:-


Submitted in partial fulfillment of the requirement for qualifying
DOEACC ‘A’ LEVEL.

NAME AND ADDRESS OF ACCREDIATED CENTRE

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.

This project is part of our ‘A’ level course. I have


developed this project with the help of teachers of my institute VAG
INFOTECH NEW DELHI, and as such I am grateful to all of them
for there support as a helping hand.

I am obliged to my project guide and I am especially


grateful to him sincere effort and valuable suggestion enabled me to
complete this project.

My thanks to all staff member and colleagues of VAG


INFOTECH for their friendly co –operation

VAISHALI SINGH
DOEACC ‘A’ LEVEL
REGISTRATION NO –548245

PROJECT CERTIFICATE

This is to certify that the project entitled “MOVIE VIDEO SHOP


MANAGEMENT SYSTEM” is a bonafide work done by Miss.VAISHALI
SINGH (DOEACC Registration no. 548245) in partial fulfillment of ‘A’
Level examination and has been carried out under my direct supervision and
guidance. This report or similar report on the topic has not been submitted
for any other examination and does not from part of any other course
undergone by the candidate.

3
Signature of guide/Supervision

Name:
Place: New Delhi
Designation:
Dated:
Address: *********

Signature of Chief Training Executive

SUBMISSION OF STUDENT PROJECT PROPOSAL


“MOVIE VEDIEO SHOP MANAGEMENT SYSTEM”

Registration No. : - 156466


Name and Address of Accredited centre:-
*****
PIN-110049
1] Name of the student: - ****** SINGH

2] Address of the student:-D/O shri *******SINGH


Quarter No. - P 5/11
****************

4
3] Title of the project - MOVIE VEDIEO SHOP
MANAGEMENT SYSTEM

4] Name of the guide:-

Signature of the student Signature of the guide

DATE:

TABLE OF CONTENT

CONTENTS PAGE NO.

1. COVER PAGE OF THE PROJECT………………………………………….2


2. ACKNOWLEDGEMENT……………………………………………………3
3. PROJECT CERTIFICATE…………………………………………………...4
4. SUBMISSION OF STUDENT PROJECT PROPOSAL……………………..5
5. COVERING LETTER TO THE PROJECT REPORT…………………….....6
6. TABLE OF CONTENT………………………………………………………7
7. INTRODUCTION………………………………………………………….....8
A) OBJECTIVE AND SCOPE OF PROJECT………………………...9
B) THEORECTICAL BACKGROUND……………………………….10
C) PROBLEM DEFINATION………………………………………….11
8. SYSTEM ANALYSIS………………………………………………………...12
A) SYSTEM CONCEPT………………………………………………...13
B) EXISTING SYSTEM………………………………………………...19
C) PROPOSED SYSTEM…………………………………………….....22
9. SYSTEM DESIGN……………………………………………………………24
A) FLOWCHART…………………………………………………….....25
B) DATAFLOW DIAGRAM…………………………………………...29

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.

Some main achievements of the software are:-


 Provides a very simple way of storing the information about the
customer.
 Data can be checked out as and when required.

7
 Provides flexibility to the system.
 Output obtained is easily understood.
 User does not require too much training for using this software.

THEORETICAL BACKGROUND

This project is made in C++ which works on the techniques of Object


Oriented Programming Language. It was developed by Bjarne Stroustrup at
AT&T Bell Laboratories in Murray Hill, New Jersey, USA, in early 1980’s.

It is considered to be a superset of ‘C’ language. C++ adds number of object


oriented features such as objects, inheritance, function overloading and
operator overloading to C.These features enable building of programs with
clarity, extensibility and ease of maintenance.

C++ can be used to build a variety of systems such as editors, compilers,


databases, communication systems, and many more complex real life
application systems. Like C programs, C++ programs can be created using
any text editor.

C++ has become industry standard language today.

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:-

A system is an orderly grouping of interdependent components linked


together according to a plan to achieve specific objective. Its main
characteristics are organization, interaction, interdependence, integration and
central objective.

A system does not necessarily means to a computer system .It may be a


manual system or any other one.

NEED OF THE SYSTEM:-

 Social and economical factor:-


A wave of social and economic changes often follows in
the wake of the new technology .New opportunities may
arises to improve the system that was previously not
possible. Changes in the ways individuals are organized
into groups may then be necessary and the new groups
may compete for economic recourses with established
units.

 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.

 High level decisions and operating pressures:-

11
In response to technological, socio-economical factors Top-
level officers may get details of the organization as and when
required.

DEFINITION OF SYSTEM STUDY:-

A System study is a step-by-step process used to identify and then


developed and /or acquires the software needed to control the processing of
specific applications system study also known as SYSTEM
DEVELOPMENT LIFE CYCLE(SDLC) steps of SDLC are:-

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:-

Depending upon the result of initial investigation, the survey is expanded


to a more detailed feasibility study. A feasibility study is the test of an
organization, ability to meet user needs, and effective use of recourses.
The objective of feasibility study is not solved the problem but to acquire
the sense of its scope .During there study, the problem definitions
crystallized and aspects of the problem to be included in the system are
determined . Consequently, costs and benefits are estimated with the
greater accuracy at the stage.

The result of feasibility study is a formal proposal .This is simply a


document report, detailing the nature ands scope of the proposed solution
.It consists of the followings:-

 Statement of the problem


 Summary of findings and recommendations
 Details of findings

 Recommendation and conclusion

This is a crucial decision point in the life cycle as management .Before


Proceeding further review proposal. Many projects die here, whereas
More promising ones continue through implementation.

13
ANALYSIS:-

Analysis is the detailed study of the various operations performed by the


system and their relationships within and outside of the system and
determining whether or not a system should consider other related
syetems.During the study ,data are collected on the available files, designs
points and transactions handled by the present system .Data gathered from
one study to another in most of the cases; analyst (a person or a
team)collects data to answer the following questions about current
operations.

 What output results are currently being used the contents;

purpose, uses, accuracy and timeliness of the outputs are


checked.

 What processing procedures and resources are being used

to produce the outputs:


The records and files being processed the frequently ,
volume and accuracy of this processing , the sequence of the
steps being followed , the people and departments doing the
works ,the processing and storage equipment being used,

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.

DATA GATHERING AID:-

 Questionnaire
 Interviews and Observations

STRUCTURED ANALYSIS TOOLS:-


 Data flow diagram
 System flow chart
 Data dictionary
 Decision Tables
 Decision Tree

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.

POST IMPLEMENTATION AND MAINTENANCE:-

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

System Development needs the requirement of the system. Requirement


analysis involved studying the current system to find out how it works, to
identify the areas where it shows inability to perform the desired task and
working, out the improvement needed to be made .The system study resulted
in an evaluation of how the current system was working, whether any
adjustments were required in the current system.

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.

Questions were asked to clarify the idea of proposed system:-

 What would be the output report?


 How would be the input method?
 How business must be governed?
 What are the queries the users would want to make?
 What data the users would like to capture?

Limitations of the existing 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.

 The existing system is totally a dependent so; there are

chances of error in processing.


 The basic and major drawback in the existing system is the speed
of retrieval of data from files, which lead to delay.

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.

NEED FOR THE SYSTEM DEVELOPMENT:-

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

Information is a vital ingredient for the operation and management of any


organization .Information is required for effecting decision making by the
management .So any system should have the ability to provide error free
filtered information after processing the required data. The existing system
was completely manual and was not capable of satisfying the management
and the users.
From the above fact this project has been taken up with a view for
developing a more sophisticated system that can be easily handed by any
kind of users .The main objective of system is to overcome all the problems
of the existing systems; the proposed system is actually a generalized
existing system with all possible drawbacks of the existing system
eliminated and obviously user friendly.

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.

It incorporates all activities as follows:-


 Addition of records as and when desired.
 Business can be done.
 Modification of records when needed.
 Details of customer may be generated when required.
 Database can be viewed in detail.

OBJECTIVE OF THE PROPOSED SYSTEM:-

Based upon the requirement of specification by user in various meeting,


interviews and limitation of existing system, the requirements were
identified .The main objectives of proposed system are as follows:-
 To develop a database for “MOVIE VIDEO SHOP MANAGEMENT
SYSTEM”
 To provide valuable information.
 To create a user interface for addition, searching and modification.

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

VIDEO SHOP DATABASE 1.6 Exit

28
29
30
31
32
33
PERT CHART

SYSTEM REQUIREMENT ANALYSIS:-

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

The primary requirement is a GUI operating system .Since this is a personal


computer based system and there is no provision for networking available
the best platform would be Microsoft Windows 98 second edition although
windows ME or windows XP can also be used.

Hardware Requirement

The most important thing is to implement the software in a suitable


hardware. Since the OS chosen is windows 98 the best choice would be an
IBM compatible PC with minimum clock speed of 600 MHZ. In this case
Pentium III processor would be preferred .There must be at least 64 MB
RAM (128MB Preferred) for better processing .Usage of SVGA color
monitor of 14” or 15” is recommended for better visualization of the GUI
interface.

35
WHAT IS A DATABASE?

A database is a collection of related information .A telephone directory is an


example database; it contains related information about each person listed in
it; his or her name, address and telephone number.
A database contains records and field’s .A record is collection of different
types of information about the same subject.

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

A collection of data about a specific topic, such as business contacts or a


book collection .The table is the most basic element of the database. Table
organizes data into rows called records and columns, called fields. Records
and field combined make up the table.
Each record (row) contains information about one item or entity and is a
complete record of the item.
Each field (columns) contains information of a certain type for all records. A
field consists of name or category.

HARDWARE AND SOFTWARE USE

Hardware specification

RAM 256MB
HARD DISK 40GB
37
CPU TYPE Pentium-IV

Software specification

OPERATING SYSTEM WINDOWS’ 98


FRONT& BACK END TURBO C&C++COMPILER

USER REQUIREMENTS

Users for their assistance in running the project successfully must have the
following necessities.

 A basic knowledge of standard 101/102/105 keyboards.


 Fundamental knowledge of basic computer operations.
 User must read the user manual supplied with the project.
38
 Users must not try to run the project below the specified

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

FIELD NAME DATA TYPE PRIMARY KEY DESCRIPTION


cid Number Yes Customer Identityno
cnam Text NA Customer name
Tele Number NA Telephone number
Plc Text NA Address
F_id Number NA Film identity no.
Flm Text NA Film name
F_ty Text NA Type of film
Dte Date NA Issue date
Tme Date/time NA Issue time
Stat Text NA Status of the film
Rdate Date NA Return date
Rtime Date/time NA Return time

VIDEO TABLE

FIELD NAME DATA TYPE PRIMARY KEY DESCRIPTION


f_id Number yes Film identity no.
Flm Text NA Film name
F_ty Text NA Type of film

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];

/********************MAIN DATABASE STRUCTURE****************/


struct person

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];

char op,status2[15]="not returned";


char idate[9];char itime[9],rdate[9],rtime[9];
char status1[15]="returned"; //variable declaration
int idno[60],count[30],j=0;
int c_no[20];
int che=0;

/******************************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();

/****************************Class decleartion here************************/


/**************************password security******************************/
class menu
{
private:
char stu[20],astu[20],id[20],tid[20];
char pwd[20],tpwd[20],apwd[20];
public:
menu()
{
tid[20]='\0';
tpwd[20]='\0';apwd[20]='\0';
strcpy(stu,"student");
strcpy(astu,"administrator");
strcpy(apwd,"fqgcee");
strcpy(pwd,"rstcdms");
}

void intro();
void password();
void check1(void);
};
/**************************END password security********************/

/***************** To open file of c:\\tc\\bgi for graphics*****************/


void graph()
{
int graphdriver = DETECT, graphmode;
initgraph(&graphdriver, &graphmode, "c:\\tc\\bgi");
}
/*********************************End*********************************8/

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();
}

void words(char a[25],char b[30])


{
setcolor(YELLOW);
settextstyle(7,0,6);
outtextxy(100,100,a);

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;

for(int x=640;x>=0;x--) //Design


{
y=x>>1;
setcolor(14);
rectangle(x,y,619-x,469-y);
setcolor(0);
rectangle(x+1,y+1,619-x-1,469-y-1);
delay(1);

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 ) //Put Stars


{
putpixel(random(620), random(460), random( 16-1 )+1);
delay(1);
}
delay(100);
words(" Manisha's ","Paradise Softwares");
getch();
clrscr();
graph();
x=7;
y=16;

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********************/

void message(int x,int y,int lines,char a[50],char b[50],char c[50],


char d[50],char e[50],char f[10],int back)

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 ****************/

/*******************primary presentation ***************************/


void dev()
{
clrscr();
for(int x=50;x>=20;x--)
{
textcolor(GREEN);
delay(160);
gotoxy(x,12);
cputs(" P R O J E C T ");
gotoxy(x,14);
cputs(" D E V E L O P E D B Y : ");
gotoxy(x,16);
cputs(" Vaishali Singh ");
gotoxy(x, 18);
cputs(" new delhi ");
gotoxy(x,20);
cputs(" I n d i a ");
}
gotoxy(x,24);
cputs("PRESS ANY KEY TO CONTINUE");
getch();
}

/*************************To Draw Box2******************************/


void box2(void)
{
int ctr;
for(ctr=1;ctr<=80;ctr++)
{
gotoxy(ctr,25);
delay(12);
cout<<dash2;
}
gotoxy(80,24);
cout<<"¼";

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();
}

/***********************BUSINESS OF THE MOVIE**********************/

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;

for (int j=0;j<z;j++)


{
ifstream infile;
infile.open("file1.txt",ios::binary); //reads the data from a given file
infile.seekg(j*sizeof(person));
infile.read((char*)&p[j],sizeof (person));

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);
}

/***************FUNCTION FOR RETURNING MOVIE***********/

void R_video()
{
clrscr();
int j=0;

56
int cid;
char ch;
char cnam[20];
fflush(stdin);

/**********************TAKING CUSTOMER RECORD*********************/

cout<<"\n\nEnter customer no : ";


cin>>cid;
cout<<"\n\nEnter the customers name : ";
gets(cnam);

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));

// writes the data onto the given file

che++;
cout<<"Your Film Has Been Returned:"<<endl;
cout<<"Press Any Key To Return To Main Menu"<<endl;
getch();
k:
}

/******************FUNCTION FOR VIEWING THE DATABASE*************/

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);

cout<<"there are "<<n<<" customers database\n";


for (int j=0;j<n;j++)
{
cout<<"\n Customer no : \t"<<j+1;
ifstream infile;
infile.open("file1.txt",ios::binary);

// reads the saved data from the given file

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[6].name,"A knights tale");


strcpy(film[6].type,"english");
film[6].id=7;

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[11].name,"Boys And Girls");


film[11].id=12;
strcpy(film[11].type,"english");

strcpy(film[12].name,"saving Private Ryan");


film[12].id=13;
strcpy(film[12].type,"english");

strcpy(film[13].name,"titanic");
film[13].id=14;

61
strcpy(film[13].type,"english");

strcpy(film[14].name,"Someone Like You");


film[14].id=15;
strcpy(film[14].type,"english");

strcpy(film[15].name,"legends of the fall");


film[15].id=16;
strcpy(film[15].type,"english");

strcpy(film[16].name,"a walk in clouds");


film[16].id=17;
strcpy(film[16].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[20].name,"fast and furious");


film[20].id=21;
strcpy(film[20].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[27].name,"Air Force 1");


film[27].id=28;
strcpy(film[27].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();

textcolor(4);cprintf (" Movie Video Software " );


textbackground(BLACK);
textattr(YELLOW);
printf("\n\t ");
cprintf("*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*");
printf("\n\t ");
cprintf("*#* ");

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";

/*****************MAIN MENU OPTIONS********************************/


if (ch == 'H')
{
if (move == 1) move = 6;
else if (move > 1) move--;
}
else if (ch == 'P')
{
if (move == 6) move = 1;
else if (move < 6) move++;
}
c1 = c2 = c3 = c4 = c5 = c6 = 15;
c1b = c2b = c3b = c4b = c5b = c6b = 0;
if (move == 1) {c1 = 14; c1b = 9;}
else if (move == 2) {c2 = 14; c2b = 9; }
else if (move == 3) {c3 = 14; c3b = 9; }
else if (move == 4) {c4 = 14; c4b = 9; } // main menu
else if (move == 5) {c5 = 14; c5b = 9; } // displays total options of
else {c6 = 14; c6b = 9; // data base
}
textcolor(c1); textbackground(c1b);
cprintf("\n\r 1 Input Customer Data ");
textcolor(c2); textbackground(c2b);
cprintf("\n\r 2 Return Movie ");
textcolor(c3); textbackground(c3b);
cprintf("\n\r 3 Business Of Movie ");
textcolor(c4); textbackground(c4b);
cprintf("\n\r 4 View Data Base ");
textcolor(c5); textbackground(c5b);
cprintf("\n\r 5 Search By Customer No");
textcolor(c6); textbackground(c6b);
cprintf("\n\r 6 Exit The Program ");
cout <<"\n\n OPTION SELECTED : " <<move;
cout <<"\n\nUSE UP & DOWN AROW KEYS FOR SELCTION";
textcolor(15); textbackground(0);
ch = getch();

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;

/*******************SHOWS ALL MOVIE DATABASE******************/

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++;
}

cout<<"\n\nEnter ID # of Video Film : ";


int in=0;
cin>>in;
if(in<1||in>30)
{
cout<<"Invalid ID No"<<endl;
cout<<"press any key to return to main menu"<<endl;
getch();
goto f;
}
idno[i]=in;
idno[i]-=1;
strcpy(person[i].status,status2);
_strdate(idate);_strtime(itime);
clrscr();
strcpy(p[i].nam,person[i].names);
strcpy(p[i].tele,person[i].tel);
strcpy(p[i].plc,person[i].address);
p[i].f_id=film[idno[i]].id;
strcpy(p[i].flm,film[idno[i]].name);
strcpy(p[i].f_tp,film[idno[i]].type);
strcpy(p[i].stat,person[i].status);
strcpy(p[i].stat1,status1);
strcpy(p[i].dte,idate);
strcpy(p[i].tme,itime);
outfile.write((char*)&p[i],sizeof(person));

// writes the data onto file

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*************************/

/*******************************exit window function*******************/

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);
}

/********************* Password checking*************************/

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********************************
******/

/**********************Retype your password********************/

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

USE UP & DOWN ARROW KEYS FOR SELECTION

Enter Your Name:Aditya

Enter Telephone Number:06542 232038

Enter address :sector IX

77
Press Any Key TO View The Movie’s Name

1]mummy returns 11]Replacement killer 21]Fast and furious

2]Rush hour 12]boys and girls 22]Artificial intelligence

3]spy kids 13]saving private dragon 23]final fantasy

4]Proof of files 14]Titanic 24]The score

5]15 minutes 15]someone like you 25]Planet of the apes

6]Tomb raider 16]Legends of the fall 26]Made

7]A knights tale 17]A walk in clouds 27]Dragon

8]Replicant 18]America’s sweet heart 28]Air force I

9]MI 2 19]Con air 29]Hannibal

10]Batman 20]Road trip 30] Speed

Enter ID # Of Video Film:1

Data Has Been Stored For Customer

SOFTWARE

*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#

1.Input Customer Data

78
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program

OPTION SELECTED:2

USE UP & DOWN ARROW KEYS FOR SELECTION

Enter Customer No.:1

Enter Customer Name:Mrinalini

Your Film Has Been Returned

Press Any key To Return To Main Menu

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

USE UP & DOWN ARROW KEYS FOR SELECTION

Each Video Carries a Worth Of Rs. 20

Enter The ID# Of The Video(1-30):1

The Film [film name] Of type English Has Got Business Of Rupees 40

SOFTWARE

*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#

1.Input Customer Data

80
2.Return Movie
3. Business Of Movie
4. View Data Base
5. Search By Customer Number
6. Exit The Program

OPTION SELECTED:4

USE UP & DOWN ARROW KEYS FOR SELECTION


Customer no:1
Customer name:Mrinalini
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

Press any key to return to see next data

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

Press any key to return to see next data

There is no more data to show .

Press any key to return to main menu.

SOFTWARE

*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#

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:5

USE UP & DOWN ARROW KEYS FOR SELECTION

There are 3 customers database

Enter the customer no. u want to search(1-3):1

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

Press any key to return to main menu

SOFTWARE

*# *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
*#*#*#*#SELECT FROM FOLLOWING OPTIONS*#*#*#*#*#*#
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#

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:6

83
USE UP & DOWN ARROW KEYS FOR SELECTION

/*********************************************************************/

SCOPE AND RESULT DISCUSSION

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.

 A fully user choice based and user friendly computerized system is


developed where user can perform tasks like entering data , doing

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.

SCOPE FOR FURTHER IMPROVEMENT:

Every project ,whether large or small has some limitations no matter


however diligently developed .In some cases the limitations is small while in
other cases they may be broad also. The new system has got some
limitations:
 Our system is not online so further it can be done.
 The security is limited so some additional arrangement could be made
to provide more security to the system.
 There is no provision of complain handling so further it can be added.

MAIN ACHIEVEMENT OF THE SYSTEM

 Provides a very simple way of storing the information about the


customer.
 Data can be checked out as and when required.
 Provides flexibility to the system.
 Output obtained is easily understood.
 User does not require too much training for using this software.

85
LIMITATIONS

The limitations of this system are:-

 It can’t produce online report.


 It doesn’t have menu and form based structure.
 It doesn’t have the GUI facility.
 New Entry in the existing database of video requires to filled and
updated manually.
 Complain handling is not possible.

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:

1] Object Oriented Programming With C++


---E Balaguruswamy

88
2]How to program C++
--Deitel and Deitel

3]C++ program Design


--Cohoon and Davidson

4]LET US C++
-- Yashavant P. Kanetkar

5]TEST YOUR C++ SKILLS


-- 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

You might also like