SlideShare a Scribd company logo
_______________________________
ShopCard
______________________________________
Presented By
Harsh Mathur
Bachelors of Computer Application
Dezyne E’cole College, Ajmer
Project report on
Shop Card
Submitted To
Dezyne E’cole College
Towards
The Partial Fulfilment
Of 2017 Year, Bachelor of Computer Application
By
Harsh Mathur
Dezyne E’cole College
106/10, Civil Line Ajmer
www.dezyneecole.com
Acknowledgment
I Am Harsh Mathur Student of Bachelor Of Computer Application
Dezyne E’cole College Would Like To Express My Gratitude to Each
And Every Person Who Has Contributed In Stimulating Suggestions
And Encouragement Which Really Helped Me to Coordinate My
Project.
I Also Thank Dezyne E’cole College Who Provided Insight And Expertise
That Greatly Assisted the Project. Also, a Special Thanks To My
Teachers, Parents and Colleagues Who Have Supported Me At Every
Step. Not To Forget, the Almighty Who Blessed Me With Good Health
Because of Which I Worked More Efficiently And Better.
In the following pages I am showcasing my work:
Front Page
1 | P a g e
void main()
{
clrscr();
textbackground(1);
gotoxy(32,8);
cout<<"1. ADD "<<endl;
gotoxy(32,10);
cout<<"2. SHOW "<<endl;
gotoxy(32,12);
cout<<"3. UPDATE "<<endl;
gotoxy(32,14);
cout<<"4. Billing "<<endl;
gotoxy(32,16);
cout<<"5. Delete "<<endl;
gotoxy(32,18);
cout<<"6. Exit"<<endl;
2 | P a g e
char c;
c=getch();
store s,y;
if(c=='1')
{
clrscr();
s.get();
s.add(s);
}
else if(c=='2')
{
clrscr();
y.show();
}
else if(c=='3')
{
clrscr();
y.update();
}
3 | P a g e
else if(c=='4')
{
clrscr();
y.autoid();
y.Bill();
}
else if(c=='5')
{
clrscr();
y.del();
}
else if(c=='6')
{
clrscr();
exit(0);
}
gotoxy(20,20);
4 | P a g e
cout<<"nttDo you Want to
continue..press 1 else any key.. ";
c=getch();
if(c=='1')
{
main();
}
else
{
exit(0);
}
getch();
}
5 | P a g e
ADD DATA
6 | P a g e
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdio.h>
#include<stdlib.h>
int c=1000;
class store
{
public:
int id,q;
char n[20];
float dis,r;
void get()
{ clrscr();
gotoxy(30,8);
cout<<"Enter your id:: ";
cin>>id;
7 | P a g e
gotoxy(30,10);
cout<<"Enter Product Name name";
cin>>n;
gotoxy(30,12);
cout<<"EnterDisountProduct::";
cin>>dis;
gotoxy(30,14);
cout<<"Enter Qty of Product:: ";
cin>>q;
gotoxy(30,16);
cout<<"Enter Rate Product:: ";
cin>>r;
}
void add(store x)
{
fstream f;
f.open("shopdata.txt",ios::out|app);
f.write((char *)&x,sizeof(x));
gotoxy(40,20);
cout<<"Data succesfully inserted ";
8 | P a g e
f.close();
}
SHOW DATA
9 | P a g e
void show()
{
store x;
int c=0;
fstream f1;
f1.open("shopdata.txt",ios::in);
gotoxy(5,5);
cout<<"tIdtProduct_NamettDiscounttQtyttRate";
while(f1.read((char*)&x,sizeof(x)))
{
cout<<"t"<<x.id<<"t";
cout<<x.n<<"tt";
cout<<x.dis<<"%"<<"tt";
cout<<x.q<<"tt";
cout<<x.r<<endl;
}
f1.close();
10 | P a g e
}
UPDATE RECORD
11 | P a g e
void update()
{
int nid;
//clrscr();
gotoxy(30,2);
cout<<"*****UPDATERECORD******;
gotoxy(30,6);
cout<<"Enter Product id Update:: ";
cin>>nid;
store x;
int c=0;
fstream f1,f;
f1.open("shopdata.txt",ios::in);
while(f1.read((char*)&x,sizeof(x)))
{
f.open("temp.txt",ios::out|ios::app);
if(x.id==nid)
{
gotoxy(30,8);
12 | P a g e
cout<<"Enter your id:: "<<x.id;
gotoxy(30,10);
cout<<"Enter Product Name:: ";
gets(x.n);
gotoxy(30,12);
cout<<"Enter your Rate:: ";
cin>>x.r;
gotoxy(30,14);
cout<<"Enter your Product Qty :: ";
cin>>x.q;
gotoxy(30,16);
cout<<"Enter your Discount on Qty :: ";
cin>>x.dis;
f.write((char *)&x,sizeof(x));
}
else
{
f.write((char*)&x,sizeof(x));
}
f.close();
}
13 | P a g e
f1.close();
remove("shopdata.txt");
rename("temp.txt","shopdata.txt");
}
14 | P a g e
DELETE RECORD
15 | P a g e
void del()
{
int nid;
gotoxy(30,2);
cout<<"*****DELETERECORD******;
gotoxy(30,10);
cout<<"Enter a id::";
cin>>nid;
store x;
int c=0;
fstream f,f1;
f1.open("shopdata.txt",ios::in)
while(f1.read((char*)&x,sizeof(x)))
{
f.open("temp.txt",ios::out|ios::app);
if(nid==x.id)
{
gotoxy(30,18);
cout<<"Data Successful Delete";
16 | P a g e
}
else
{
f.write((char *)&x,sizeof(x));
}
f.close();
}
f1.close();
remove("shopdata.txt");
rename("temp.txt","shopdata.txt");
}
17 | P a g e
RETAIL INVOICE
18 | P a g e
void Bill()
{
store x;
int pid,i,max,no;
char cn[20];
float d,net;
fstream f1;
f1.open("shopdata.txt",ios::in);
gotoxy(25,8);
cout<<"Enter a Product id";
gotoxy(35,9);
cin>>pid;
clrscr();
textcolor(14);
gotoxy(30,2);
cout<<"***Retail Invoice***";
gotoxy(2,4);
cout<<"Customer Name::";
cin>>cn;
19 | P a g e
cout<<"nIdttProduct_NamettRatettDiscount";
while(f1.read((char *)&x,sizeof(x)))
{
if(x.id==pid)
{
cout<<endl<<x.id<<"tt";
cout<<x.n<<"tt";
cout<<x.r<<"tt";
cout<<x.dis<<"%"<<endl;
c++;
int pqt,multi;
cout<<"nEnter a Product Qty:";
cin>>pqt;
multi=pqt*x.r;
d=multi*pqt*x.dis/100;
net=multi-d;
cout<<"Bill id is::";
c=autoid();
gotoxy(58,10);
20 | P a g e
cout<<c;
cout<<"nTotal Amount Is::";
gotoxy(58,11);
cout<<multi<<" Rs.";
cout<<"nTotal Discount Amount Is::";
gotoxy(58,12);
cout<<d<<" Rs.";
cout<<"nNet Amount Is::";
gotoxy(58,13); clrscr();
textcolor(14);
gotoxy(30,2);
cout<<"***Retail Invoice***";
gotoxy(2,4);
cout<<"Customer Name::";
cin>>cn;
cout<<"nIdttProduct_NamettRatettDiscount";
while(f1.read((char *)&x,sizeof(x)))
{
if(x.id==pid)
{
21 | P a g e
cout<<endl<<x.id<<"tt";
cout<<x.n<<"tt";
cout<<x.r<<"tt";
cout<<x.dis<<"%"<<endl;
c++;
int pqt,multi;
cout<<"nEnter a Product Qty:";
cin>>pqt;
multi=pqt*x.r;
d=multi*pqt*x.dis/100;
net=multi-d;
cout<<"Bill id is::";
c=autoid();
gotoxy(58,10);
cout<<c;
cout<<"nTotal Amount Is::";
gotoxy(58,11);
cout<<multi<<" Rs.";
cout<<"nTotal Discount Amount Is::";
22 | P a g e
gotoxy(58,12);
cout<<d<<" Rs.";
cout<<"nNet Amount Is::";
gotoxy(58,13);
cout<<net<<" Rs.";
break;
}
}
if(c==0)
{
cout<<"nData NOT Found::";
}
f1.close();
}
23 | P a g e
Thank You
Presented By
Harsh Mathur
Bachelors of Computer Application
Dezyne E’cole College, Ajmer
24 | P a g e

More Related Content

Similar to Harsh Mathur project c++

Rounit Mathur , BCA Third Year
Rounit Mathur , BCA Third YearRounit Mathur , BCA Third Year
Rounit Mathur , BCA Third Year
Dezyneecole
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
Dezyneecole
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third Year
Dezyneecole
 
Harsh Mathur, BCA Second Year, Dezyne E'cole College
Harsh Mathur, BCA Second Year, Dezyne E'cole CollegeHarsh Mathur, BCA Second Year, Dezyne E'cole College
Harsh Mathur, BCA Second Year, Dezyne E'cole College
Dezyneecole
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third Year
dezyneecole
 
Karishma Mulani , BCA 2 Year
Karishma Mulani , BCA 2 YearKarishma Mulani , BCA 2 Year
Karishma Mulani , BCA 2 Year
dezyneecole
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
RORLAB
 
Neil Patel - What You Need to be Measuring and How to Do It
Neil Patel - What You Need to be Measuring and How to Do ItNeil Patel - What You Need to be Measuring and How to Do It
Neil Patel - What You Need to be Measuring and How to Do It
Carsonified Team
 
Hi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab PresentationHi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab Presentation
plindner
 
Daily expenses tracker project ppt7.pptx
Daily expenses tracker project ppt7.pptxDaily expenses tracker project ppt7.pptx
Daily expenses tracker project ppt7.pptx
ssusere6f5a11
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
vikram mahendra
 
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO
 
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh  Mathur Final Year Project Report on Restaurant Billing SystemHarsh  Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur
 
Creating Multi-Page Data Entry Controllers
Creating Multi-Page Data Entry ControllersCreating Multi-Page Data Entry Controllers
Creating Multi-Page Data Entry Controllers
Salesforce Developers
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
Harsh Kumar
 
Tejas_ppt.pptx
Tejas_ppt.pptxTejas_ppt.pptx
Tejas_ppt.pptx
GanuBappa
 
Tejas_ppt (1).pptx
Tejas_ppt (1).pptxTejas_ppt (1).pptx
Tejas_ppt (1).pptx
GanuBappa
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++
vikram mahendra
 
Yashika Rathore,BCA-3 Year
Yashika Rathore,BCA-3 YearYashika Rathore,BCA-3 Year
Yashika Rathore,BCA-3 Year
dezyneecole
 
Opensocial Codelab
Opensocial CodelabOpensocial Codelab
Opensocial Codelab
Pieter De Schepper
 

Similar to Harsh Mathur project c++ (20)

Rounit Mathur , BCA Third Year
Rounit Mathur , BCA Third YearRounit Mathur , BCA Third Year
Rounit Mathur , BCA Third Year
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third Year
 
Harsh Mathur, BCA Second Year, Dezyne E'cole College
Harsh Mathur, BCA Second Year, Dezyne E'cole CollegeHarsh Mathur, BCA Second Year, Dezyne E'cole College
Harsh Mathur, BCA Second Year, Dezyne E'cole College
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third Year
 
Karishma Mulani , BCA 2 Year
Karishma Mulani , BCA 2 YearKarishma Mulani , BCA 2 Year
Karishma Mulani , BCA 2 Year
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
 
Neil Patel - What You Need to be Measuring and How to Do It
Neil Patel - What You Need to be Measuring and How to Do ItNeil Patel - What You Need to be Measuring and How to Do It
Neil Patel - What You Need to be Measuring and How to Do It
 
Hi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab PresentationHi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab Presentation
 
Daily expenses tracker project ppt7.pptx
Daily expenses tracker project ppt7.pptxDaily expenses tracker project ppt7.pptx
Daily expenses tracker project ppt7.pptx
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
 
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
 
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh  Mathur Final Year Project Report on Restaurant Billing SystemHarsh  Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur Final Year Project Report on Restaurant Billing System
 
Creating Multi-Page Data Entry Controllers
Creating Multi-Page Data Entry ControllersCreating Multi-Page Data Entry Controllers
Creating Multi-Page Data Entry Controllers
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
Tejas_ppt.pptx
Tejas_ppt.pptxTejas_ppt.pptx
Tejas_ppt.pptx
 
Tejas_ppt (1).pptx
Tejas_ppt (1).pptxTejas_ppt (1).pptx
Tejas_ppt (1).pptx
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++
 
Yashika Rathore,BCA-3 Year
Yashika Rathore,BCA-3 YearYashika Rathore,BCA-3 Year
Yashika Rathore,BCA-3 Year
 
Opensocial Codelab
Opensocial CodelabOpensocial Codelab
Opensocial Codelab
 

More from Harsh Mathur

Understanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdfUnderstanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdf
Harsh Mathur
 
Service Desk By Harsh Mathur
Service Desk  By Harsh MathurService Desk  By Harsh Mathur
Service Desk By Harsh Mathur
Harsh Mathur
 
Training Management Software By Harsh Mathur.
Training  Management Software By Harsh Mathur.Training  Management Software By Harsh Mathur.
Training Management Software By Harsh Mathur.
Harsh Mathur
 
Hotel management system By Harsh & aditya Mathur.
Hotel management system By  Harsh & aditya  Mathur.Hotel management system By  Harsh & aditya  Mathur.
Hotel management system By Harsh & aditya Mathur.
Harsh Mathur
 
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project pptHarsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur
 
Invoice Maker by harsh mathur
Invoice Maker by harsh mathurInvoice Maker by harsh mathur
Invoice Maker by harsh mathur
Harsh Mathur
 
Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.
Harsh Mathur
 
College website By Harsh Mathur
College website By Harsh MathurCollege website By Harsh Mathur
College website By Harsh Mathur
Harsh Mathur
 
Billing software By Harsh Mathur
Billing software By Harsh MathurBilling software By Harsh Mathur
Billing software By Harsh Mathur
Harsh Mathur
 
Alert system By Harsh Mathur.
Alert system By Harsh Mathur.Alert system By Harsh Mathur.
Alert system By Harsh Mathur.
Harsh Mathur
 
Color palette By Harsh Mathur
Color palette By Harsh MathurColor palette By Harsh Mathur
Color palette By Harsh Mathur
Harsh Mathur
 
Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.
Harsh Mathur
 
Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.
Harsh Mathur
 
Student Management System (SMS)
Student Management System (SMS)Student Management System (SMS)
Student Management System (SMS)
Harsh Mathur
 
Cab invoice/cab Bill Genrater
Cab invoice/cab Bill GenraterCab invoice/cab Bill Genrater
Cab invoice/cab Bill Genrater
Harsh Mathur
 
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 Informatics Practices Chapter 2  Open Source Software Concepts Class 12th Informatics Practices Chapter 2  Open Source Software Concepts Class 12th
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
Harsh Mathur
 
Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
Harsh Mathur
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
Harsh Mathur
 
Eco chapter 1 class 12th
Eco chapter 1 class 12thEco chapter 1 class 12th
Eco chapter 1 class 12th
Harsh Mathur
 

More from Harsh Mathur (19)

Understanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdfUnderstanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdf
 
Service Desk By Harsh Mathur
Service Desk  By Harsh MathurService Desk  By Harsh Mathur
Service Desk By Harsh Mathur
 
Training Management Software By Harsh Mathur.
Training  Management Software By Harsh Mathur.Training  Management Software By Harsh Mathur.
Training Management Software By Harsh Mathur.
 
Hotel management system By Harsh & aditya Mathur.
Hotel management system By  Harsh & aditya  Mathur.Hotel management system By  Harsh & aditya  Mathur.
Hotel management system By Harsh & aditya Mathur.
 
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project pptHarsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project ppt
 
Invoice Maker by harsh mathur
Invoice Maker by harsh mathurInvoice Maker by harsh mathur
Invoice Maker by harsh mathur
 
Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.
 
College website By Harsh Mathur
College website By Harsh MathurCollege website By Harsh Mathur
College website By Harsh Mathur
 
Billing software By Harsh Mathur
Billing software By Harsh MathurBilling software By Harsh Mathur
Billing software By Harsh Mathur
 
Alert system By Harsh Mathur.
Alert system By Harsh Mathur.Alert system By Harsh Mathur.
Alert system By Harsh Mathur.
 
Color palette By Harsh Mathur
Color palette By Harsh MathurColor palette By Harsh Mathur
Color palette By Harsh Mathur
 
Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.
 
Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.
 
Student Management System (SMS)
Student Management System (SMS)Student Management System (SMS)
Student Management System (SMS)
 
Cab invoice/cab Bill Genrater
Cab invoice/cab Bill GenraterCab invoice/cab Bill Genrater
Cab invoice/cab Bill Genrater
 
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 Informatics Practices Chapter 2  Open Source Software Concepts Class 12th Informatics Practices Chapter 2  Open Source Software Concepts Class 12th
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 
Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
 
Eco chapter 1 class 12th
Eco chapter 1 class 12thEco chapter 1 class 12th
Eco chapter 1 class 12th
 

Recently uploaded

20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 

Harsh Mathur project c++

  • 2. Project report on Shop Card Submitted To Dezyne E’cole College Towards The Partial Fulfilment Of 2017 Year, Bachelor of Computer Application By Harsh Mathur Dezyne E’cole College 106/10, Civil Line Ajmer www.dezyneecole.com
  • 3. Acknowledgment I Am Harsh Mathur Student of Bachelor Of Computer Application Dezyne E’cole College Would Like To Express My Gratitude to Each And Every Person Who Has Contributed In Stimulating Suggestions And Encouragement Which Really Helped Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who Provided Insight And Expertise That Greatly Assisted the Project. Also, a Special Thanks To My Teachers, Parents and Colleagues Who Have Supported Me At Every Step. Not To Forget, the Almighty Who Blessed Me With Good Health Because of Which I Worked More Efficiently And Better.
  • 4. In the following pages I am showcasing my work: Front Page
  • 5. 1 | P a g e void main() { clrscr(); textbackground(1); gotoxy(32,8); cout<<"1. ADD "<<endl; gotoxy(32,10); cout<<"2. SHOW "<<endl; gotoxy(32,12); cout<<"3. UPDATE "<<endl; gotoxy(32,14); cout<<"4. Billing "<<endl; gotoxy(32,16); cout<<"5. Delete "<<endl; gotoxy(32,18); cout<<"6. Exit"<<endl;
  • 6. 2 | P a g e char c; c=getch(); store s,y; if(c=='1') { clrscr(); s.get(); s.add(s); } else if(c=='2') { clrscr(); y.show(); } else if(c=='3') { clrscr(); y.update(); }
  • 7. 3 | P a g e else if(c=='4') { clrscr(); y.autoid(); y.Bill(); } else if(c=='5') { clrscr(); y.del(); } else if(c=='6') { clrscr(); exit(0); } gotoxy(20,20);
  • 8. 4 | P a g e cout<<"nttDo you Want to continue..press 1 else any key.. "; c=getch(); if(c=='1') { main(); } else { exit(0); } getch(); }
  • 9. 5 | P a g e ADD DATA
  • 10. 6 | P a g e #include<iostream.h> #include<conio.h> #include<fstream.h> #include<stdio.h> #include<stdlib.h> int c=1000; class store { public: int id,q; char n[20]; float dis,r; void get() { clrscr(); gotoxy(30,8); cout<<"Enter your id:: "; cin>>id;
  • 11. 7 | P a g e gotoxy(30,10); cout<<"Enter Product Name name"; cin>>n; gotoxy(30,12); cout<<"EnterDisountProduct::"; cin>>dis; gotoxy(30,14); cout<<"Enter Qty of Product:: "; cin>>q; gotoxy(30,16); cout<<"Enter Rate Product:: "; cin>>r; } void add(store x) { fstream f; f.open("shopdata.txt",ios::out|app); f.write((char *)&x,sizeof(x)); gotoxy(40,20); cout<<"Data succesfully inserted ";
  • 12. 8 | P a g e f.close(); } SHOW DATA
  • 13. 9 | P a g e void show() { store x; int c=0; fstream f1; f1.open("shopdata.txt",ios::in); gotoxy(5,5); cout<<"tIdtProduct_NamettDiscounttQtyttRate"; while(f1.read((char*)&x,sizeof(x))) { cout<<"t"<<x.id<<"t"; cout<<x.n<<"tt"; cout<<x.dis<<"%"<<"tt"; cout<<x.q<<"tt"; cout<<x.r<<endl; } f1.close();
  • 14. 10 | P a g e } UPDATE RECORD
  • 15. 11 | P a g e void update() { int nid; //clrscr(); gotoxy(30,2); cout<<"*****UPDATERECORD******; gotoxy(30,6); cout<<"Enter Product id Update:: "; cin>>nid; store x; int c=0; fstream f1,f; f1.open("shopdata.txt",ios::in); while(f1.read((char*)&x,sizeof(x))) { f.open("temp.txt",ios::out|ios::app); if(x.id==nid) { gotoxy(30,8);
  • 16. 12 | P a g e cout<<"Enter your id:: "<<x.id; gotoxy(30,10); cout<<"Enter Product Name:: "; gets(x.n); gotoxy(30,12); cout<<"Enter your Rate:: "; cin>>x.r; gotoxy(30,14); cout<<"Enter your Product Qty :: "; cin>>x.q; gotoxy(30,16); cout<<"Enter your Discount on Qty :: "; cin>>x.dis; f.write((char *)&x,sizeof(x)); } else { f.write((char*)&x,sizeof(x)); } f.close(); }
  • 17. 13 | P a g e f1.close(); remove("shopdata.txt"); rename("temp.txt","shopdata.txt"); }
  • 18. 14 | P a g e DELETE RECORD
  • 19. 15 | P a g e void del() { int nid; gotoxy(30,2); cout<<"*****DELETERECORD******; gotoxy(30,10); cout<<"Enter a id::"; cin>>nid; store x; int c=0; fstream f,f1; f1.open("shopdata.txt",ios::in) while(f1.read((char*)&x,sizeof(x))) { f.open("temp.txt",ios::out|ios::app); if(nid==x.id) { gotoxy(30,18); cout<<"Data Successful Delete";
  • 20. 16 | P a g e } else { f.write((char *)&x,sizeof(x)); } f.close(); } f1.close(); remove("shopdata.txt"); rename("temp.txt","shopdata.txt"); }
  • 21. 17 | P a g e RETAIL INVOICE
  • 22. 18 | P a g e void Bill() { store x; int pid,i,max,no; char cn[20]; float d,net; fstream f1; f1.open("shopdata.txt",ios::in); gotoxy(25,8); cout<<"Enter a Product id"; gotoxy(35,9); cin>>pid; clrscr(); textcolor(14); gotoxy(30,2); cout<<"***Retail Invoice***"; gotoxy(2,4); cout<<"Customer Name::"; cin>>cn;
  • 23. 19 | P a g e cout<<"nIdttProduct_NamettRatettDiscount"; while(f1.read((char *)&x,sizeof(x))) { if(x.id==pid) { cout<<endl<<x.id<<"tt"; cout<<x.n<<"tt"; cout<<x.r<<"tt"; cout<<x.dis<<"%"<<endl; c++; int pqt,multi; cout<<"nEnter a Product Qty:"; cin>>pqt; multi=pqt*x.r; d=multi*pqt*x.dis/100; net=multi-d; cout<<"Bill id is::"; c=autoid(); gotoxy(58,10);
  • 24. 20 | P a g e cout<<c; cout<<"nTotal Amount Is::"; gotoxy(58,11); cout<<multi<<" Rs."; cout<<"nTotal Discount Amount Is::"; gotoxy(58,12); cout<<d<<" Rs."; cout<<"nNet Amount Is::"; gotoxy(58,13); clrscr(); textcolor(14); gotoxy(30,2); cout<<"***Retail Invoice***"; gotoxy(2,4); cout<<"Customer Name::"; cin>>cn; cout<<"nIdttProduct_NamettRatettDiscount"; while(f1.read((char *)&x,sizeof(x))) { if(x.id==pid) {
  • 25. 21 | P a g e cout<<endl<<x.id<<"tt"; cout<<x.n<<"tt"; cout<<x.r<<"tt"; cout<<x.dis<<"%"<<endl; c++; int pqt,multi; cout<<"nEnter a Product Qty:"; cin>>pqt; multi=pqt*x.r; d=multi*pqt*x.dis/100; net=multi-d; cout<<"Bill id is::"; c=autoid(); gotoxy(58,10); cout<<c; cout<<"nTotal Amount Is::"; gotoxy(58,11); cout<<multi<<" Rs."; cout<<"nTotal Discount Amount Is::";
  • 26. 22 | P a g e gotoxy(58,12); cout<<d<<" Rs."; cout<<"nNet Amount Is::"; gotoxy(58,13); cout<<net<<" Rs."; break; } } if(c==0) { cout<<"nData NOT Found::"; } f1.close(); }
  • 27. 23 | P a g e Thank You Presented By Harsh Mathur Bachelors of Computer Application Dezyne E’cole College, Ajmer
  • 28. 24 | P a g e