Vous êtes sur la page 1sur 9

SOURCE CODE

Home

C & C++

JAVA

HTML

ASP.NET

bill

XML

PROJECT

for Fast, C
TIPS &Search
TRICKS

omplete Response
s to Any bill Questi

CONTACT US

on.

SHOPPING MALL BILLING SYSTEM IN


C/C++
#include<stdio.h>

#include<conio.h>

#include<process.h>
#include<stdlib.h>

#include<ctype.h>
#include<dos.h>

#include<string.h>
#include<time.h>

www.searchstage.co
m

#include<math.h>
struct additem
{

int item_id;

char item_name[50];
float price;
};

struct bill
{

int bill_id;

char cust_name[50];

char item_name[10][50];
float quant[10];
float total;

Visit Website

float price[10];
char date[15];
int n;
};

FILE *fp,*fp1,*bifp,*bifp1;
struct additem ad;
struct bill bi;

int add_item();

int generate_bill();
int delete_bill();

int display_bill();
int q=0;

void main()
{

int i=1;

textbackground(GREEN);
textcolor(BLUE);
clrscr();

textbackground(GREEN);
textcolor(BLUE);

printf("\n\n\n\n\n\n\t\t\t * * * * * * * * * * * * * *");
printf("\n\t\t\t * *");

printf("\n\t\t\t * SHOPPING *");


printf("\n\t\t\t * MALL *");

printf("\n\t\t\t * BILLING *");

printf("\n\t\t\t * SYSTEM *");

Search This Blog

Search

Google+ Badge
R.N. Patel
Follow

printf("\n\t\t\t * *");

printf("\n\t\t\t * * * * * * * * * * * * * *");

bill

printf("\n\n\t\t\tPRESS 1 TO ENTER AND 0 TO EXIT.....");


scanf("%d",&i);
if(i==0)
{

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS YOU");


delay(1800);

Like Page
Be the first of your friends to like this

Search for Fast, C

exit(0);

omplete Response

else
{

int f=1,choice;
clrscr();

/*for(f=1;f<4;f++)
{

printf("\n\nPLEASE WAIT");
printf(" .");

delay(600);
printf(" .");

delay(600);
printf(" .");

delay(600);
clrscr();
}*/

XYZ:

printf("\t\t\t ********************************\n");

printf("\t\t\t SHOPPING MALL BILLING SYSTEM\n");


printf("\t\t\t ********************************");

printf("\n--------------------------------------------------");
printf("\n\n\t1. ADD PRODUCT");

printf("\n\n\t2. GENERATE A BILL");


printf("\n\n\t3. DISPLAY A BILL");
printf("\n\n\t4. DELETE A BILL");
printf("\n\n\t5. EXIT");

printf("\n\nPRESS CORRESPONDING KEYS TO PERFORM OPERATION :- ");


ABC:

scanf("%d",&choice);
switch(choice)
{

case 1:

q=add_item();
if(q==0)
{

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANK YOU");


delay(1800);
exit(0);
}

else
{

clrscr();

goto XYZ;
}

break;

case 2:

q=generate_bill();
if(q==0)
{

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANK YOU");


delay(1800);
exit(0);
}

else
{

Contact Us

Blog Archive

s to Any bill Questi


on.

2016 (7)

2015 (155)
2014 (205)

December (9)
November (4)
March (7)

February (172)

C programming code to merge two sorted


arrays
Change RadioButton Checked status on
Button click ...

www.searchstage.co

How to checked RadioButton on page


m
load in asp.net...
Get RadioButton checked status
programmatically in...

RadioButton OnCheckedChanged event


in asp.net
Unchecked RadioButton
programmatically in asp.net

Theme and skin id (SkinID) in asp.net


RadioButton

American Standard Code for Information


Interchange...
SHOPPING MALL BILLING SYSTEM IN
C/C++
Program Date Of Birth Counter in C/C++

Faculty Information Management System


in C/C++
Simple Interest System Code in C/C++
Age Calculation System in C/C++

Register, Login, Display Records in


C/C++

English Dictionary using Data structure


(BST)
Stack Push and Pop Program in c/c++
Downloading LOGIN SCREEN and
Progress Bar C/C++
Water Billing System in C++

Code to produce increasing and


decreasing stars
ATM Machine Project in C++

Gas-Station Management System in C


Language
ASP.NET - How to set, change Panel
border width pr...
How to show, hide, visible Panel
programmatically ...

clrscr();

goto XYZ;
}

break;

case 3:

q=display_bill();
if(q==0)
{

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANK YOU");


delay(1800);
exit(0);}
else
{

clrscr();

goto XYZ;
}

break;

case 4:

q=delete_bill();
if(q==0)
{

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANK YOU");


delay(1800);
exit(0);
}

else
{

clrscr();

goto XYZ;
}

case 5:

clrscr();

printf("\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANK YOU");


delay(1800);
exit(0);

default:

printf("\n\nYOU ENTERED A WRONG VALUE.PLEASE TRY AGAIN : ");


goto ABC;
}
}

getch();
}

int add_item()
{

int f=1,id=0,p[10],i=0,h=0,t=0;
fp=fopen("product8.txt","a");
fclose(fp);
clrscr();

while(f==1)
{

clrscr();

fp=fopen("product8.txt","r");

while((fread(&ad,sizeof(ad),1,fp))==1)
{

id=ad.item_id;
}

fclose(fp);

printf("\nENTER PRODUCT NAME :-\t");


scanf("%s",ad.item_name);
//gets(ad.item_name);

printf("\nENTER PRODUCT PRICE :-\t");


scanf("%f",&ad.price);
id++;

p[i]=id;
i++;

ASP.NET - How to use image as Panel


background

bill

ASP.NET - How to set, change Panel


ScrollBars prop...
ASP.NET - How to set, change Panel
Wrap property p...
ASP.NET - How to set, change Panel
style

Search
Fast, C
ASP.NET - How to enable,
disablefor
theme
in Panel, E...

omplete Response

ASP.NET - How to use theme


and skin
id
s to Any
bill Questi
(SkinID) in...

on.

Salary Management System In C


Fee Management System In C

C Program To swap two number by using


call by refe...
C Program To sum up first N natural
number

C Program to print the square of float


number

C Program To find reverse of a number


C Program to evaluate the expression
s=sqr(a()+b()...
How to Validate ListBox in asp.net

www.searchstage.co

ASP.NET Validation - How to disable


m
client script

How to use ValidationSummary control in


asp.net
How to use RangeValidator in asp.net
ASP.NET RangeValidator - How to
validate date rang...

asp.net RegularExpressionValidator
example: how to...

ASP.NET RegularExpressionValidator
example - How t...

asp.net RequiredFieldValidator example:


how to val...
How To Treverse Data In xml file Using
Java Script...

How To Implement Vigenere Cipher In C


Language
Payroll Management System In C
asp.net listbox set selected items

How to add asp.net listbox attributes

How to use GetXml() method in asp.net


xml ADO.NET
How to change asp.net Button
background color

How to change asp.net Button height


programmatical...
How to change asp.net Button style
programmaticall...

How to use theme and skin in asp.net


Button contro...

How to show tool tip in asp.net Button


control

How to show, hide, visible asp.net Button


programm...
Airline Reservation System in C++

Railway Reservation System in C++

ad.item_id=id;

fp=fopen("product8.txt","a");
fwrite(&ad,sizeof(ad),1,fp);

//printf("\nsize of ad:-%d",sizeof(ad));
fclose(fp);

printf("\n\n\n\nYOUR PRODUCT WITH ID %d IS ADDED SUCCESSFULLY....",ad.item_id);


printf("\n\nPRESS 1 TO ADD NEW PRODUCT OR ANY KEY TO EXIT...\t");
scanf("%d",&f);
if(f!=1)
{

break;
}
}

clrscr();
i=0;

fp=fopen("product8.txt","r");

while((fread(&ad,sizeof(ad),1,fp))==1)
{

if(p[i]==ad.item_id)
{

printf("\nPRODUCT ID :- %d",ad.item_id);

printf("\nPRODUCT NAME :- %s",ad.item_name);


printf("\nPRODUCT PRICE :- %f",ad.price);
printf("\n\n");
i++;
}
}

fclose(fp);

printf("PRESS 1 TO GO TO MENU PAGE AND 0 TO EXIT :-\t");


scanf("%d",&q);
return q;
}

int generate_bill()
{

time_t now;

struct tm *d;
int w=0;

int item_id,f=1,i=0,n=0,p=0,bill_id=0,k=1,j=0;
float total=0,quant=0;

bifp=fopen("bill6.txt","a");
fclose(bifp);
while(f==1)
{

int flag=0;
clrscr();
if(j==0)
{

bifp=fopen("bill6.txt","r");

while((fread(&bi,sizeof(bi),1,bifp))==1)
{

bill_id=bi.bill_id;
}

bill_id++;

bi.bill_id=bill_id;
fclose(bifp);
j++;
}

printf("\tNOTE :- JUST ENTER PRODUCT ID OF BUYING PRODUCTS TO CALCULATE


BILL");

printf("\n\nPRODUCT ID :-\t");
scanf("%d",&item_id);

fp=fopen("product8.txt","r");

while((fread(&ad,sizeof(ad),1,fp))==1)
{

if(item_id==ad.item_id)
{

//printf("\nPRODUCT ID :-\t%d",ad.item_id);

Reverse Word String Program In C


Language

bill

Draw a rectangle in ASP.Net

ASP.NET - How to draw a line


connecting two Point ...

ASP.NET - How to draw a pie shape

ASP.NET - How to fill the interior of a


GraphicsPa...

Search for Fast, C

ASP.NET - How to fill the interior of a


omplete Response
Region

s to Any bill Questi

asp.net dropdown list years

on.

How to use theme and skin in asp.net


TreeView
How to use SliderExtender in asp.net
ajax

Change GridView selected row vertical


align in asp...

Create and use GridView custom pager


template in a...

How to add an image in asp.net Calendar


Day Cell
How to use Calendar ApplyStyle method
in asp.net

How to use Calendar MergeStyle method


in asp.net
www.searchstage.co
How to add CheckBox in asp.net
Calendar Day Cell

Deselect Calendar selected date on


second click in...

How to select random dates from asp.net


Calendar
How to use Calendar
VisibleMonthChanged event in a...

Stored Procedure and Return Parameter


in asp.net
How to use master page and content
page in asp.net...

How to use ItemTemplate and Paging in


asp.net Form...
Create Schema For Employee Store In
XML
Create Schema For Purchase Order in
XML
How to use ImageMap in asp.net

How to use FormView ItemTemplate and


Eval() in asp...
How to use Table in asp.net

How to use themes and skins in asp.net


Add cell and column in a table
programmatically in...

Hotel Management System In C++


Code for Program to illustrate the
implementation ...

Code for Program to draw a Chess Board


in C++ Prog...
Code for Program of Flood fill algorithm
in C++ Pr...
Scope Resolution Operator In C++

C Program To Change Text Background


Color

printf("\n\nPRODUCT NAME :- %s",ad.item_name);

C Program To Find The Pattern In The


String

strcpy(bi.item_name[i],ad.item_name);

bill

printf("\tPRODUCT PRICE :- %f",ad.price);

C Program To Count The Character and


Spaces in Str...

bi.price[i]=ad.price;
printf("\n\n");

C Program to use of delay function

flag=1;

C Program to use of pow function

}
}

Start Session And End Session In


ASP.Net With help...

if(flag==0)

Search for Fast, C

C Program To Implement Stack Using


omplete Response
Linked-List

printf("\n\n\tYOUR PRODUCT ID IS NOT FOUND.");

s to Any bill Questi

C Graphics Program To Make A Hut

else

on.

C Graphics Program To Make A Flag

printf("\n\nQUANTITY OF PRODUCT :-\t");

January (13)

scanf("%f",&quant);
bi.quant[i]=quant;

2013 (82)

total=total+quant*ad.price;
bi.total=total;

Popular Posts

flag=0;
bi.n=i;
n=i;

i++;
}

fclose(fp);

printf("\n\n\nPRESS 1 TO ADD MORE PRODUCT OTHERWISE PRESS ANY KEY TO GO TO


BILL PAGE : ");
scanf("%d",&f);
}

clrscr();

scanf("%s",&bi.cust_name);
time(&now);

#include<fstream.h> #include<iostream.h>
#include<iomanip.h> #include<stdio.h>
#include<conio.h> #includ...

#include<iostream.h> #include<string> using


namespace std; void Student_Info(); void
CourseMark(); float CourseG...

d=localtime(&now);

strftime(bi.date, 15, "%d/%m/%Y", d);

printf("\n\n\nPRESS 1 TO GENERATE A BILL AND ANY KEY TO GO TO MAIN MENU : ");


scanf("%d",&p);
if(p!=1)

return p;
}

else
{

i=0;

bifp=fopen("bill6.txt","a");

fwrite(&bi,sizeof(bi),1,bifp);
fclose(bifp);

clrscr();

//gotoxy(35,12);

for(p=0;p<3;p++)
{

printf("\n\nBILL IS GENERATING");

delay(500);
printf(" .");

delay(500);
printf(" .");

delay(500);

printf(" .");

delay(500);
clrscr();
}

printf("\t\t\t ********************************\n");

printf("\t\t\t SHOPPING MALL BILLING SYSTEM\n");


printf("\t\t\t ********************************");

printf("\n----------------------------------------------------");
gotoxy(2,5);

www.searchstage.co
m

printf("\n\tPUT DOWN CUSTOMER INFORMATION .....");


printf("\n\nCUSTOMER NAME :-\t");

# include<stdio.h> #include<conio.h>
#include<string.h> void main() { char aa[26]
="abcdefghijklmnopqrstuvwxyz&q...

#include<conio.h> #include<stdio.h> void main()


{ int i,j,b=65,c=65,d=65,t[20]; char s[20],a[26]
[26]; clrscr(); ...
#include<fstream.h> #include<stdio.h>
#include<conio.h> #include<string.h>
#include<iostream.h> #include...

/* Vehicle parking program */ #include <stdio.h>


#include <conio.h> #include <windows.h> #define
CAR 1 #define SCO...

#include<stdio.h> #include<conio.h>
#include<process.h> #include<stdlib.h>
#include<ctype.h> #include<...

#include<graphics.h> #include<iostream.h>
#include<conio.h> #include<stdlib.h> char
*buff1,*buff2; void main(...

#include<iostream.h> #include<conio.h>
#include<stdio.h> #include<fstream.h>
#include<cstring.h> void m...

printf("CUSTOMER NAME : %s",bi.cust_name);


gotoxy(36,5);

printf("BILL ID : %d",bi.bill_id);
gotoxy(62,5);

printf("DATE : %s",bi.date);

10

#include<iostream> #include <fstream> #include


<iomanip> using namespace std; int main() {
string Name; ...

bill

printf("\n--------------------------------------------");
gotoxy(4,7);

printf("SrNo.");
gotoxy(12,7);

printf("ITEM NAME");
gotoxy(32,7);

printf("PRICE");
gotoxy(53,7);

printf("QUANTITY");

Search for Fast, C

omplete Response
s to Any bill Questi
on.

gotoxy(70,7);

printf("TOTAL");
total=0;

for(i=0;i<=n;i++)
{

delay(200);

gotoxy(5,w+9);

printf("%d",i+1);

gotoxy(14,w+9);

printf("%s",bi.item_name[i]);
gotoxy(31,w+9);

printf("%f",bi.price[i]);
gotoxy(53,w+9);

printf("%f",bi.quant[i]);
gotoxy(68,w+9);

printf("%f",bi.price[i]*bi.quant[i]);

total=total+(bi.price[i]*bi.quant[i]);
w=w+2;
}

delay(200);

printf("\n-----------------------------------------------------");
gotoxy(14,w+9);
printf("TOTAL");

gotoxy(66,w+9);

printf("%f Rs",total);

printf("\n-------------------------------------------------------");
delay(200);

printf("\n\nPRESS 1 TO GO TO MAIN MENU AND 0 TO EXIT :- ");


scanf("%d",&q);
return q;
}
}

int display_bill()
{

int w=0,p=0;

int item_id,f=0,i=0,bill_id=0;
float total;
clrscr();

printf("\nPLEASE ENTER YOUR BILL-ID :- ");


scanf("%d",&bill_id);

bifp=fopen("bill6.txt","a");
fclose(bifp);

bifp=fopen("bill6.txt","r");

while((fread(&bi,sizeof(bi),1,bifp))==1)
{

if(bill_id==bi.bill_id)
{

f=1;

clrscr();

for(p=0;p<3;p++)
{

printf("\n\nSEARCHING");
delay(500);

www.searchstage.co
m

printf(" .");

delay(500);

bill

printf(" .");

delay(500);
printf(" .");

delay(500);
clrscr();
}

printf("\t\t\t ********************************\n");

Search for Fast, C

printf("\t\t\t SHOPPING MALL BILLING SYSTEM\n");

omplete Response

printf("\t\t\t ********************************");

s to Any bill Questi

printf("\n-------------------------------------------------------------");
gotoxy(2,5);

on.

printf("CUSTOMER NAME : %s",bi.cust_name);


gotoxy(36,5);

printf("BILL ID : %d",bi.bill_id);
gotoxy(62,5);

printf("DATE : %s",bi.date);

printf("\n-----------------------------------------------------------");
gotoxy(4,7);

printf("SrNo.");
gotoxy(12,7);

printf("ITEM NAME");
gotoxy(32,7);

printf("PRICE");
gotoxy(53,7);

printf("QUANTITY");

www.searchstage.co
m

gotoxy(70,7);

printf("TOTAL");
total=0;

for(i=0;i<=bi.n;i++)
{

delay(200);

gotoxy(5,w+9);

printf("%d",i+1);

gotoxy(14,w+9);

printf("%s",bi.item_name[i]);
gotoxy(31,w+9);

printf("%f",bi.price[i]);
gotoxy(53,w+9);

printf("%f",bi.quant[i]);
gotoxy(68,w+9);

printf("%f",bi.price[i]*bi.quant[i]);

total=total+(bi.price[i]*bi.quant[i]);
w=w+2;
}

delay(200);

printf("\n-------------------------------------------------------------");
gotoxy(14,w+9);
printf("TOTAL");

gotoxy(66,w+9);

printf("%f Rs",total);

printf("\n---------------------------------------------------");
break;
}
}

if(f==0)
{

printf("\n\nSORRY, YOUR BILL-ID DOES NOT MATCH");


}

fclose(bifp);
delay(200);

printf("\n\nPRESS 1 TO GO TO MAIN MENU AND 0 TO EXIT :- ");


scanf("%d",&q);
return q;
}

int delete_bill()

About Me
R.N. Patel

rnp logicsoft

Live Traffic Feed


A visitor from Jakarta, Jakarta
Raya viewed "SOURCE CODE:
bill
SHOPPING MALL BILLING
SYSTEM IN C/C++" 1 min ago
A visitor from Jalandhar, Punjab
viewed "SOURCE CODE: C
programe for implement hill
cipher"
mins Pune,
ago
A visitor8 from

int item_id,f=0,i=0,bill_id=0;
clrscr();

bifp=fopen("bill6.txt","w");
fclose(bifp);

printf("\nPLEASE ENTER YOUR BILL-ID :- ");


scanf("%d",&bill_id);

bifp=fopen("bill6.txt","r");

while(fread(&bi,sizeof(bi),1,bifp)==1)

Maharashtra viewed "SOURCE


Search for Fast, C
CODE: Flying Butterfly
omplete Response
Animation
Program
C City
A visitor from
Cebu,InCebu
s to Any bill Questi
Graphics"
25
mins
ago
viewed "SOURCE CODE:

if(bi.bill_id==bill_id)
{

f=1;

on.
Enrolment Management System
in
C++" 1from
hr 37Seoul,
mins Seoulago
A visitor

break;
}

tukpyolsi viewed "SOURCE


CODE: ASP.NET - How to use
theme and skin id (SkinID) in
Panel control" 2 hrs 30 mins ago
A visitor from Pakistan viewed
"SOURCE CODE: Car Parking
Management System In C++" 2
hrsvisitor
51 mins
agoPeshawar, NorthA
from

fclose(bifp);
if(f==1)
{

bifp=fopen("bill6.txt","r");

bifp1=fopen("bill7.txt","w");

while((fread(&bi,sizeof(bi),1,bifp))==1)

West Frontier viewed


"SOURCE CODE: ATM
Machine Project in C++" 2 hrs
A
from Dasmarias,
55visitor
mins ago
Cavite viewed "SOURCE
CODE: Enrolment Management
www.searchstage.co
System
C++"Fiji
4 hrs
43 mins
A visitorinfrom
viewed
m
ago
"SOURCE CODE: Student

fwrite(&bi,sizeof(bi),1,bifp1);
}

//fflush(bifp);
fclose(bifp);

fclose(bifp1);

bifp=fopen("bill6.txt","w");

Grading System In C++" 4 hrs


47
mins ago
A visitor
from Hyderabad,

bifp1=fopen("bill7.txt","r");

while((fread(&bi,sizeof(bi),1,bifp1))==1)

Andhra Pradesh viewed


"SOURCE CODE: C programe
for implement hill cipher" 6 hrs
Real-time view Get Feedjit

if(bi.bill_id!=bill_id)
{

fwrite(&bi,sizeof(bi),1,bifp);
}
}

//fflush(bifp1);
fclose(bifp1);
fclose(bifp);

printf("\n\nYOUR BILL HAS BEEN DELETED SUCCESSFULLY.");


}

else
{

printf("\n\nSORRY, YOUR BILL-ID DOES NOT MATCH.");


}

printf("\n\nPRESS 1 TO GO TO MAIN MENU AND 0 TO EXIT :- ");


scanf("%d",&q);
return q;
}

You might also like:

How to use
ListView control in
asp.net

asp.net
radiobuttonlist
vertical alignment

asp.net
radiobuttonlist
vertical spacing

How to send an
Email using C#
complete features
Linkwithin

Posted by R.N. Patel at 16:53


Reactions:

funny (0)

bill

+4 Recommend this on Google

interesting (2)

cool (1)

R.N. Patel

Web developer

Search for Fast, C

omplete Response

2 comments

s to Any bill Questi


on.

Add a comment as yatish h r

Top comments

R.N. Patel 2 years ago - Shared publicly

SHOPPING MALL BILLING SYSTEM IN C/C++


#include<stdio.h> #include<conio.h> #include<process.h> #include<stdlib.h>
#include<ctype.h> #include<dos.h> #include<string.h> #include<time.h>
#include<math.h> struct additem { int item_id; char item_name[50]; float price; };
struct bill { int bill_id; ch...
+4

1 Reply

>

Philipp Glenn Lazaga 1 year ago - Shared publicly


I can't debug it. There's something an error.. :(
1

Newer Post
Subscribe to: Post Comments (Atom)

www.searchstage.co
m

Home

Older Post

Vous aimerez peut-être aussi