Shopping

Published on February 2017 | Categories: Documents | Downloads: 54 | Comments: 0 | Views: 283
of 24
Download PDF   Embed   Report

Comments

Content

INTRODUCTION
Shopping malls are an emerging trend in the global arena. The first thing that comes in our mind about the shopping malls is that it is a big enclosed building housing a variety of shops or products In this project, we will be designing a simple shopping mall using object oriented technology. The mall will provide a soothing shopping experience for customers, while at the same time allowing us to explore design patterns and other features object oriented technology. In the recent times, most of the records are maintained on paper. It becomes very inconvenient to modify the data. When the customers buy the things from the mall then their records were maintained on the registers like name of the customer and his personal details. This inconsistent state does not supply the concrete information which poses a problem in the case information related to particular search record. Also it is very difficult to maintain the records of the people who visits the mall and also what they buy from the different shops. Also the shop owner has to remember the rate of all the items. So, my project is very useful. Shop owner make the bill of the items that the customers buy from the particular shop. The user need not to type in most of the information. He/she is just required to enter the desired options. On the whole it liberates the user from keeping lengthy manual records. In a nutshell, it abates the work load of an organization. In today’s world, no one likes to perform calculations on calculator or manually when computer is there. Everyone wants his/her work to be done by computer automatically and displaying the result for further manipulations. • Purpose:The purpose of this application are as follows : The software is for the management of the shopping mall. It provides following facilities to  Operator : 1)Operator enter his name, phone number and address. 2)Operator make the bill for the items buy by the customer. • Scope : The different areas where we can use this application are : Any shopping mall can make use of it for provide the information about their mall to their customers. Also it is used to make the bill for the items buy by the customers. It can be used in small shops also and modifications can be easily done according to requirements. • Technology Used : Borland C++ tool • Overview : Shop owner make the bill of the items that the customers buy from the particular shop. The user need not to type in most of the information. He/she is just required to enter the desired options. • Customer:  Customers when enter the mall have to authenticate themselves on a central server.  After authentication, the customer is allocated a shopping cart and can enter a particular shop of his/her choice for shopping.  After entering a shop, customer can brows through the products available in the shop, can select some of them and put into the shopping cart.

 Customer can anytime change the items in the cart either by adding new items or by removing gexsting items. Customer proceeds towards the payment counter. Finalize product list of items he finally wish to buy and make the final payment.  He/She then leaves the shop and can either enter another shop or leave the mall.

PROPOSED SYSTEM
• DESCRIPTION

My project is SHOPPING MALL MANAGEMENT SOFTWARE in which, When user run it then it ask for a password, if you enter the correct password then only user will be able to use this software otherwise it will be automatically come out from the software. Then after it user has to enter his name, phone number and address which is the complete detail of the visitors of the mall. Then after it user entered in the main menu in which he has to enter the choice as ‘1’ or ‘2’ or ‘3’. If user enter the choice as ‘1’ then he will be able to check the complete details of the visitors of the mall. If user enter the choice as ‘2’ then he see the list of the items available in the mall. Then he has to select the things which he wants to buy. After buying the items he will get the complete bill with the quantity and price of the items bought by the customer. Also it shows the total amount that the customer has to pay. If user enter the choice as ‘3’ then he will come out from the software. I also use some graphic functions in it to make it look nice. • OBJECTIVE OF PROPOSED SYSTEM

 The Data Can Have Multiple Uses different users who perceive the same data differently can employ them in different ways.  Intellectual Investment: protects existing programs and logical data structure will not have to be redone when changes are made to the database.  Clarity: users can easily know and understand what data are available to them.  Performance: Data requests can be satisfied with speed suitable to the usage of data
 Less data Proliferation: New application needs may be met with existing data rather than

creating new files, thus avoiding the excessive data proliferation in today’s tape libraries
 Low Cost: Low cost of storing and using data. And minimization of the high cost of making changes.  Ease of Use: Users can gain access to data in a simple fashion.

 Unanticipated requests for data can be handled quickly.  Physical data Independence: Storage hardware and physical storage techniques can be changed without causing application program re-writing

 Logical data Independence: New item data can be added or the overall logical structures expanded without existing programs having to be re-written.  Controlled Redundancy: Data items will be stored only once except where there are technical or economic reasons for redundant storage.  Suitably fast Access: Access mechanism and addressing methods will be fast enough for the usage in the question.  Suitably Fast Searching: The need for fast spontaneous searching of the data will grow as inter-active systems usage spreads.  Fast Recovery from Failures: Automatic recovery without loss of transactions  Design and Monitoring Aids: Aids, which permit the designer or data administrator to predict and optimize performance.

SYSTEM REQUIREMENT

SOFTWARE REQUIREMENTS

1. 2. 3.

Operating system Environment Front end Tool

Window NT, 2000,XP Etc C Language C++ software which supports the BGI file i.e. graphics.

HARDWARE REQUIREMENTS

1. 2. 3. 4.

Processor Mother board Ram Hard Disk

PIII 750 Mhz and above Intel 810 E and above Above 128 MB 30 MB

6.

I/O Devices

Keyboard, mouse and color monitor

REQUIREMENT ANALYSIS
The requirement specification is produced at the culmination of the analysis task. The function and performance allocated project as part of system engineering are refined by establishing a complete information description, a detailed functional description, a representation of system behavior, an indication of performance requirements and design constraints, appropriate validation criteria, and other information pertinent to requirements. The introduction of the project requirement specification states the goals and objectives of the project describing it in the context of the computer-based system. Actually the introduction may be nothing more than the software scope of the planning document. The information description provides a detailed description of the problem that the project must solve. Information content, flow, and structure are documented. Hardware, software and human interfaces are described for external system elements and internal software functions. For this project we need some special type of environment for setup.

PROGRAM CODE:
#include<iostream.h> #include<conio.h> #include<fstream.h> #include<graphics.h> #include<process.h> #include<stdio.h> #include<iomanip.h> #include<dos.h> #include<string.h> class sanket { char name[15],address[15],x,x1,x2;

long int phone,l; int y9,y1,y2,y3,y4,y5,y6,y7,k,k1,z,z1,z2,z3,z4,z5,z6,z7,y8,z8,y10,z10,z11,y11,y12,z12,z13,y13,n; public: void get() { int d,m; d=DETECT; initgraph(&d,&m,"\\tc\\bgi"); cleardevice(); setcolor(RED); rectangle(5,10,630,100); setfillstyle(SOLID_FILL,RED); floodfill(15,15,RED); setcolor(YELLOW); settextstyle(7,0,5); outtextxy(120,30,"LOGIN MENU"); ofstream obj; obj.open("RAM.DAT",ios::app); if(!obj) { cout<<"File opening error"; return; } gotoxy(30,10);

cout<<"PLEASE ENTER YOUR NAME:"; gets(name); gotoxy(30,11); cout<<"PLEASE ENTER YOUR PHONE NUMBER:"; cin>>phone; gotoxy(30,12); cout<<"PLEASE ENTER YOUR ADDRESS:"; gets(address); obj.write((char*)this,sizeof(sanket)); obj.close(); closegraph(); } void get1() { int d,m; d=DETECT; initgraph(&d,&m,"\\tc\\bgi"); cleardevice(); setcolor(RED); rectangle(5,10,630,100); setfillstyle(SOLID_FILL,RED); floodfill(15,15,RED); setcolor(YELLOW); settextstyle(7,0,5); outtextxy(120,30,"MAIN MENU");

gotoxy(30,10); cout<<"1.VISITORS MENU"; gotoxy(30,11); cout<<"2.BUY ITEMS"; gotoxy(30,12); cout<<"EXIT"; closegraph(); } //clrscr(); void get2() { int d,m,n; d=DETECT; initgraph(&d,&m,"\\tc\\bgi"); cleardevice(); setcolor(YELLOW); rectangle(5,10,630,100); setfillstyle(SOLID_FILL,YELLOW); floodfill(15,15,YELLOW); setcolor(RED); settextstyle(7,0,5); outtextxy(130,30,"VISITOR'S MENU"); gotoxy(30,10); int a=11; ifstream obj;

obj.open("RAM.DAT"); if(!obj) { cout<<"File opening error"; return; } obj.seekg(0); while(!obj.eof()) { obj.read((char*)this,sizeof(sanket)); if(obj.eof()) break; gotoxy(2,10); cout<<"VISITOR NAME"; gotoxy(2,a); cout<<name; gotoxy(20,10); cout<<"VISITORS PHONE NO."; gotoxy(20,a); cout<<phone; gotoxy(40,10); cout<<"VISITORS ADDRESS"; gotoxy(40,a); cout<<address; a++;

} obj.close(); getch(); closegraph(); } void get3() { int d,m,n; d=DETECT; initgraph(&d,&m,"\\tc\\bgi"); cleardevice(); setcolor(YELLOW); rectangle(5,10,630,100); setfillstyle(SOLID_FILL,YELLOW); floodfill(15,15,YELLOW); setcolor(RED); settextstyle(7,0,5); outtextxy(130,30,"BUY ITEMS"); //closegraph(); //clrscr(); gotoxy(25,8); char x; int y9,z,k; cout<<"DO U WANT TO BUY SHOES(Y/N):"; cin>>x;

//getch(); if(x=='y'||x=='Y') { gotoxy(25,9); cout<<"NUMBER OF SHOES U WANT:"; cin>>y9; z=y9*500; getch(); } else { //clrscr(); gotoxy(25,10); cout<<"LETS MOVE TO NEXT SHOP"; z=0; getch(); } //clrscr(); int y1,z1,y2,z2,y3,z3,y4,z4,y5,z5,y6,z6; gotoxy(25,11); //getch(); cout<<"DO U WANT TO ENTER CANTEEN(Y/N):"; cin>>x1; if(x1=='y'||x1=='Y') {

//clrscr(); gotoxy(25,12); cout<<"BURGER:"; cin>>y1; z1=y1*15; //getch(); gotoxy(25,13); cout<<"ICE CREAM:"; cin>>y2; z2=y2*20; //getch(); gotoxy(25,14); cout<<"PATTIES:"; cin>>y3; z3=y3*8; //getch(); gotoxy(25,15); cout<<"COLD DRINK:"; cin>>y4; z4=y4*15; //getch(); gotoxy(25,16); cout<<"JUICE:"; cin>>y5; z5=y5*15;

//getch(); gotoxy(25,17); cout<<"BISCUIT:"; cin>>y6; z6=y6*10; gotoxy(25,18); cout<<"CHOCOLATE:"; cin>>y8; z8=y8*10; gotoxy(25,19); cout<<"DEODRANT:"; cin>>y10; z10=y10*100; //getch(); gotoxy(25,20); cout<<"SOAP:"; cin>>y11; z11=y11*15; gotoxy(25,21); cout<<"TOOTH PASTE:"; cin>>y12; cout<<endl; z12=y12*10; } else

{ //clrscr(); //gotoxy(25,22); cout<<setw(40)<<"\tLETS MOVE TO NEXT SHOP"; cout<<endl; z1=z2=z3=z4=z5=z6=z8=z10=z11=z12=0; getch(); }

int y7,z7,k1; //gotoxy(25,23); cout<<setw(40)<<"\t\t\tDO U WANT TO BUY CLOTHES(Y/N):"; cin>>x2; cout<<endl; if(x2=='y'||x2=='Y') { cout<<setw(40)<<"\t\tNUMBER OF CLOTHES U WANT:"; cin>>y7; z7=y7*500; getch(); } else { z7=0; //goto cd;

getch(); } //cd: cleardevice(); //getch(); cout<<"\t\t\t\tBILL"<<endl; cout<<"CUSTOMER NAME:"<<name<<endl; cout<<"CUSTOMER PHONE NO.:"<<phone<<endl; cout<<" YOUR BILL IS:"<<endl; cout<<"=============================================================== ================"; cout<<"\nITEMS" <<setw(40)<<"QUANTITY"<<setw(28)<<"PRICE(Rs.)";

cout<<"=============================================================== ================"; if(z>0) cout<<"\n\nSHOES" if(z1>0) cout<<"\n\nBURGER" if(z2>0) cout<<"\n\nICE CREAM" if(z3>0) cout<<"\n\nPATTIES" if(z4>0) cout<<"\n\nCOLD DRINK" if(z5>0) <<setw(33)<<y4<<setw(28)<<"Rs."<<z4; <<setw(36)<<y3<<setw(28)<<"Rs."<<z3; <<setw(34)<<y2<<setw(28)<<"Rs."<<z2; <<setw(37)<<y1<<setw(28)<<"Rs."<<z1; <<setw(38)<<y9<<setw(28)<<"Rs."<<z;

cout<<"\n\nJUICE"<<setw(38)<<y5<<setw(28)<<"Rs."<<z5; if(z6>0) cout<<"\n\nBISCUIT" if(z7>0) cout<<"\n\nCLOTHES" if(z8>0) cout<<"\n\nCHOCOLATE" if(z10>0) cout<<"\n\nDEODRANT" if(z11>0) cout<<"\n\nSOAP" if(z12>0) cout<<"\n\nTOOTH PASTE" getch(); long int l; l=z+z1+z2+z3+z4+z5+z6+z7+z8+z10+z11+z12; <<setw(32)<<y12<<setw(28)<<"Rs."<<z12; <<setw(39)<<y11<<setw(28)<<"Rs."<<z11; <<setw(35)<<y10<<setw(28)<<"Rs."<<z10; <<setw(34)<<y8<<setw(28)<<"Rs."<<z8; <<setw(36)<<y7<<setw(28)<<"Rs."<<z7; <<setw(36)<<y6<<setw(28)<<"Rs."<<z6;

cout<<"\n\n\nYOU HAVE TO PAY ONLY RS."<<l; getch(); closegraph(); getch(); } void get4() { char t;

ab: ef: gh: int d,m; d=DETECT; initgraph(&d,&m,"\\tc\\bgi"); cleardevice(); setcolor(YELLOW); rectangle(5,10,630,100); setfillstyle(SOLID_FILL,YELLOW); floodfill(15,15,YELLOW); setcolor(RED); settextstyle(7,0,5); outtextxy(120,30,"MAIN MENU"); gotoxy(30,10); cout<<"1.VISITORS MENU"; gotoxy(30,11); cout<<"2.BUY ITEMS"; gotoxy(30,12); cout<<"3.EXIT"; gotoxy(30,13); cout<<"ENTER UR CHOICE:"; cin>>n;

cleardevice();

switch(n) { case 1: cleardevice(); get2(); goto ef; break; case 2: cleardevice(); get3(); goto gh; case 3: exit(1); getch(); default: gotoxy(30,13); cout<<"PLEASE ENTER THE CORRECT CHOICE:"; goto ab; closegraph(); } //void show() //{

}}; void main()

{ int i,j; clrscr(); char f[10],a[10]="sanket"; int i,j=0,l,len; gotoxy(10,10); cout<<"PLEASE ENTER THE PASSWORD:"; cin.getline(f,80); l=strlen(f); len=strlen(a); for(i=1;i<=len;i++) { if(f[i]==a[i]) { gotoxy(10,11); cout<<"CORRECT PASSWORD"; goto op; } else { gotoxy(10,11); cout<<"WRONG PASSWORD"; getch(); exit(1); }}

op: sanket s; s.get(); s.get1(); s.get4(); getch(); }

TESTING
The purpose of system testing is to identify and correct errors in the system as important as this phase is, it is one that is frequently compromised. In system testing performance and acceptance standards are developed sub standard performance or service interruptions that result in system failure are checked during the test. After the coding phase, computer programs are available that can be executed for testing purpose. This implies that testing not only, has to uncover errors introduced during coding, but also errors introduced during previous phase. Thus the goal of testing is to uncover the requirements, design and coding errors in the programs. Figure shown below shows that program has no errors

HOW DOES IT WORKS

When we click on run then firstly it asks for a password. Then we have to enter the password.

Then it shows that the password is correct. But if password is incorrect then it shows:

But if password is correct then it goes to the next page, which takes the name, phone number and address from the customer entering in the mall.

Then after it, it goes to the next page which is main menu page. In this it ask for to check details about the visitors of mall, buy items and for exit.

If we enter the choice as ‘1’ then it shows the complete details of the visitors of the mall.

But if we enter ‘2’ then it goes to the buy items menu. In this you can bu the things which are available in the mall.

Then after it, it make the complete bill for the visitor of the mall with the complete details of buying items, with their quantity and price.

After this it again return to the main menu.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close