SlideShare a Scribd company logo
1 of 17
Topic:- Develop store Manegement application
No. of student names Enrollment No Branch
1] VedikaVispute 2216290037 EXTC
2] SpandanNarvekar 2216290038 EXTC
Lecturer’s
Name
MrsagarMeheta Submission Date 12/04/2023
Under the guidance of
Department of EXTC (Diploma)
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
CERTIFICATE
This Micro Project Report “Develop Store Manegement Application using
C” By Ms. VedikaVispute, Mr. SpandanNarvekar Approved for The Diploma of
EXTC Engineering (DIPLOMA) (First Year) For Academic Year 2023 - 2024.
Examiners
1.__________________
2.___________________
Supervisor
1. ___________________
Prof. SagarMeheta
Head of the Department Principal
Date:
Place
INTRODUCTION
In C programming language, store management refers to the efficient
allocation and management of memory resources in a computer program.
Memory allocation and deallocation are critical aspects of programming, as
programs need to use and release memory resources in an organized and
efficient way to avoid memory leaks and crashes.
In C, the programmer can explicitly allocate and deallocate memory using
functions like malloc(), calloc(), realloc(), and free(). These functions allow
the program to allocate memory dynamically, based on the needs of the
program at runtime.
Proper store management is important for ensuring that a program uses
memory efficiently, avoids memory leaks and crashes, and runs smoothly. It is
also an important aspect of writing secure code, as poorly managed memory
can be exploited by attackers to execute malicious code.
KEY TOPICS
Here are some of the key topics related to store management in C:
Memory allocation and deallocation: C provides functions like malloc(), calloc(),
realloc(), and free() to allocate and deallocate memory dynamically at runtime.
These functions can be used to allocate memory for variables, arrays, and
structures.
Pointers: Pointers are variables that store memory addresses. They are a critical
part of store management in C, as they allow the programmer to manipulate
memory directly. Pointers can be used to access and modify data stored in
memory, and to allocate and deallocate memory dynamically.
Dynamic memory allocation: C allows the programmer to allocate memory
dynamically, which means that memory can be allocated and released during
program execution. This is useful when the size of the data to be stored is not
known at compile time, or when memory needs to be allocated in response to
user input.
Memory leaks: Memory leaks occur when a program fails to release memory
that is no longer needed. This can lead to inefficient use of memory, and can
eventually cause the program to crash. Proper store management in C involves
identifying and fixing memory leaks.
Memory corruption: Memory corruption occurs when a program writes to
memory outside of the allocated range, or when memory is accessed after it has
been freed. This can lead to unpredictable behavior, crashes, and security
vulnerabilities. Proper store management in C involves preventing memory
corruption through careful allocation and deallocation of memory.
Overall, store management is an important aspect of programming in C, as it
directly impacts the performance, stability, and security of the program
CONTENTS
 Add new products of your store with their details
 Maintain the buyer’s records
 Update Product
 Edit/Delete items if needed
 View all product and their quantity
 View daily sales of the items
 Create new users in the system
 Create or offer a discount system for products while selling
 Change Admin passwords
 View, Generate Bill.
 Add New Product
SOURCE CODE FOR STORE
MANAGEMENT SYSTEM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using System.Data;
namespace MyStore.Code
{
public class Query_DB
{
BussinessLogic bl = new BussinessLogic();
public int ID {
get;
set;
}
public String EMAIL
{
get;
set;
}
public String PASSWORD
{
get;
set;
}
public int TYPE
{
get;
set;
}
public bool VerifyUser(Query_DB qdb)
{
bool temp = false;
string query = string.Format("select count(*) from
Admin where Email='{0}' and Password = '{1}'", qdb.EMAIL,
qdb.PASSWORD);
OleDbDataReader rec = bl.SelectQuery(query);
while (rec.Read())
{
if (rec[0].ToString().Equals("1"))
{
temp = true;
}
}
return temp;
}
public Query_DB GetUserDetails(Query_DB cdb)
{
string query = string.Format("select
ID,Email,Password,Type from Admin where Email='{0}' and
Password = '{1}'", cdb.EMAIL, cdb.PASSWORD);
OleDbDataReader rec = bl.SelectQuery(query);
while (rec.Read())
{
if (!rec[0].ToString().Equals(" ") &&
Convert.ToInt32(rec[0].ToString()) >= 1)
{
Query_DB utb = new Query_DB();
utb.ID =
Convert.ToInt32(rec[0].ToString());
utb.EMAIL = rec[1].ToString();
utb.PASSWORD = rec[2].ToString();
utb.TYPE =
Convert.ToInt32(rec[3].ToString());
return utb;
}
}
return null;
}
public bool CheckUser(String email)
{
bool temp = false;
string query = string.Format("select count(*) from
UserData where UEmail= '{0}' ", email);
OleDbDataReader rec = bl.SelectQuery(query);
while (rec.Read())
{
if (Convert.ToInt32((rec[0].ToString())) >= 1)
{
temp = true;
}
}
return temp;
}
public int CheckUserExist(String name,String mobile)
{
string query = string.Format("select ID from
UserData where UName= '{0}' and UMobile='{1}' ", name,mobile);
OleDbDataReader rec = bl.SelectQuery(query);
while (rec.Read())
{
if (Convert.ToInt32((rec[0].ToString())) >= 1)
{
return Convert.ToInt32(rec[0].ToString());
}
else {
return 0;
}
}
return 0;
}
public int GetMaxID(String tab)
{
String query = String.Format("Select Max(id) From
{0}", tab);
OleDbDataReader rec = bl.SelectQuery(query);
while (rec.Read())
{
if (!rec[0].ToString().Equals(""))
{
return Convert.ToInt32(rec[0].ToString());
}
else
{
return 0;
}
}
return 0;
}
public bool CreateUser(String email, String name,
String mobile, String address, String gender)
{
bool temp = false;
String query = String.Format("insert into UserData
values({0}+1,'{1}','{2}','{3}','{4}','{5}')",GetMaxID("UserDat
a"), email,name,mobile,address,gender);
if (bl.NonQuery(query) == 1)
{
temp = true;
}
return temp;
}
public bool ChangePassword(Query_DB cdb)
{
bool temp = false;
string query = string.Format("update Admin set
[Password]='{0}' where [ID]={1}", cdb.PASSWORD, cdb.ID);
if (bl.NonQuery(query) == 1)
{
temp = true;
}
return temp;
}
public bool CreateSell(String date,int uid,int
discount,int total,int aby)
{
bool temp = false;
String query = String.Format("insert into Sell
values({0}+1,'{1}',{2},{3},{4},{5})",
GetMaxID("Sell"),date,uid,discount,total,aby);
if (bl.NonQuery(query) == 1)
{
temp = true;
}
return temp;
}
public bool CreateSellProduct(int sid, int pid, int
qty, int price)
{
bool temp = false;
String query = String.Format("insert into
SellProduct values({0}+1,{1},{2},{3},{4})",
GetMaxID("SellProduct"), sid, pid,qty,price);
if (bl.NonQuery(query) == 1)
{
temp = true;
}
return temp;
}
public bool AddProduct(String name,int price,int qty)
{
String query = String.Format("insert into Product
values({0}+1,'{1}',{2},{3})",GetMaxID("Product"), name, price,
qty);
if (bl.NonQuery(query) == 1) {
return true;
}
return false;
}
public void GetProduct(DataGridView dg)
{
string query = "select PName,PPrice,PQuantity,ID
as pid from Product";
bl.filldataGrid(dg, query);
}
public void GetProductBySearch(DataGridView dg,String
se)
{
string query = "select PName,PPrice,PQuantity,ID
as pid from Product where PName like('%" + se + "%')";
bl.filldataGrid(dg, query);
}
public void GetSell(DataGridView dg)
{
string query = "select
UName,Date,Discount,Total,Sell.ID as pid,Email as ad from
Sell,UserData,Admin where Sell.Uid=UserData.ID and
Admin.ID=Sell.ABy";
bl.filldataGrid(dg, query);
}
public void GetSaleBySearch(DataGridView dg,String se)
{
string query = "select
UName,Date,Discount,Total,Sell.ID as pid,Email as ad from
Sell,UserData,Admin where Sell.Uid=UserData.ID and
Admin.ID=Sell.ABy and UName like('%" + se + "%')";
bl.filldataGrid(dg, query);
}
public void GetUserSell(DataGridView dg,int id)
{
string query = "select
PName,Quantity,Price,(Price*Quantity) as total from
SellProduct,Product where SellProduct.Productid=Product.ID
and Sellid="+ id +"";
bl.filldataGrid(dg, query);
}
public void GetUserSaleBySearch(DataGridView dg,int
id, String se)
{
string query = "select
PName,Quantity,Price,(Price*Quantity) as total from
SellProduct,Product where SellProduct.Productid=Product.ID
and Sellid=" + id + " and PName like('%" + se + "%')";
bl.filldataGrid(dg, query);
}
public void GetUser(DataGridView dg)
{
string query = "select UName,UMobile from
UserData";
bl.filldataGrid(dg, query);
}
public void GetUserBySearch(DataGridView dg,String ae)
{
string query = "select UName,UMobile from UserData
where UName like ('%"+ae+"%')";
bl.filldataGrid(dg, query);
}
public void GetSellProduct(DataGridView dg,int sid)
{
string query = "select
PName,Quantity,Price,(Quantity*Price) as total from
SellProduct,Product where SellProduct.Sellid=" + sid + " and
SellProduct.Productid=Product.ID";
bl.filldataGrid(dg, query);
}
public bool UpdateProduct(String name,String
price,String qty,int id) {
string query = string.Format("update Product set
[PName]='{0}',[PPrice]={1},[PQuantity]={2} where ID={3}",
name, price, qty,id);
if (bl.NonQuery(query) == 1)
{
return true;
}
return false;
}
}
}
Login Page
View Sale
RESULT
User Buy
Bill
Contact
In conclusion, store management is an important aspect of
programming in C. C provides functions like malloc(), calloc(),
realloc(), and free() for memory allocation and deallocation. These
functions allow the programmer to allocate memory dynamically
based on program needs. Proper store management involves
identifying and fixing memory leaks and preventing memory
corruption. Effective store management is crucial for ensuring
efficient use of memory, program stability, and security.
CONCLUSION

More Related Content

Similar to Vedika C project.docx

MCC Scripts update
MCC Scripts updateMCC Scripts update
MCC Scripts updatesupergigas
 
Apex and Virtual Private Database
Apex and Virtual Private DatabaseApex and Virtual Private Database
Apex and Virtual Private DatabaseJeffrey Kemp
 
Vpd Virtual Private Database By Saurabh
Vpd   Virtual Private Database By SaurabhVpd   Virtual Private Database By Saurabh
Vpd Virtual Private Database By Saurabhguestd83b546
 
Digital analytics with R - Sydney Users of R Forum - May 2015
Digital analytics with R - Sydney Users of R Forum - May 2015Digital analytics with R - Sydney Users of R Forum - May 2015
Digital analytics with R - Sydney Users of R Forum - May 2015Johann de Boer
 
Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)PiyushKashyap54
 
E_Commerce Data model
E_Commerce Data modelE_Commerce Data model
E_Commerce Data modelSilpiNandi1
 
ASP.NET MVC 3.0 Validation
ASP.NET MVC 3.0 ValidationASP.NET MVC 3.0 Validation
ASP.NET MVC 3.0 ValidationEyal Vardi
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling Sencha
 
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your AppOdoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your AppElínAnna Jónasdóttir
 
QSDA2022: Qlik Sense Data Architect | Q & A
QSDA2022: Qlik Sense Data Architect | Q & AQSDA2022: Qlik Sense Data Architect | Q & A
QSDA2022: Qlik Sense Data Architect | Q & APalakMazumdar1
 
Online_Examination
Online_ExaminationOnline_Examination
Online_ExaminationRupam Dey
 
Agile methodologies based on BDD and CI by Nikolai Shevchenko
Agile methodologies based on BDD and CI by Nikolai ShevchenkoAgile methodologies based on BDD and CI by Nikolai Shevchenko
Agile methodologies based on BDD and CI by Nikolai ShevchenkoMoldova ICT Summit
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Sparkhound Inc.
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
Final_DSPRAC (1).pdf
Final_DSPRAC (1).pdfFinal_DSPRAC (1).pdf
Final_DSPRAC (1).pdfSiddhant Pal
 

Similar to Vedika C project.docx (20)

MCC Scripts update
MCC Scripts updateMCC Scripts update
MCC Scripts update
 
Apex and Virtual Private Database
Apex and Virtual Private DatabaseApex and Virtual Private Database
Apex and Virtual Private Database
 
Vpd Virtual Private Database By Saurabh
Vpd   Virtual Private Database By SaurabhVpd   Virtual Private Database By Saurabh
Vpd Virtual Private Database By Saurabh
 
Test plan
Test planTest plan
Test plan
 
Digital analytics with R - Sydney Users of R Forum - May 2015
Digital analytics with R - Sydney Users of R Forum - May 2015Digital analytics with R - Sydney Users of R Forum - May 2015
Digital analytics with R - Sydney Users of R Forum - May 2015
 
Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)
 
E_Commerce
E_CommerceE_Commerce
E_Commerce
 
E_Commerce Data model
E_Commerce Data modelE_Commerce Data model
E_Commerce Data model
 
ASP.NET MVC 3.0 Validation
ASP.NET MVC 3.0 ValidationASP.NET MVC 3.0 Validation
ASP.NET MVC 3.0 Validation
 
exa_cer_g23
exa_cer_g23exa_cer_g23
exa_cer_g23
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
 
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your AppOdoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
 
QSDA2022: Qlik Sense Data Architect | Q & A
QSDA2022: Qlik Sense Data Architect | Q & AQSDA2022: Qlik Sense Data Architect | Q & A
QSDA2022: Qlik Sense Data Architect | Q & A
 
AngularJS On-Ramp
AngularJS On-RampAngularJS On-Ramp
AngularJS On-Ramp
 
Online_Examination
Online_ExaminationOnline_Examination
Online_Examination
 
Agile methodologies based on BDD and CI by Nikolai Shevchenko
Agile methodologies based on BDD and CI by Nikolai ShevchenkoAgile methodologies based on BDD and CI by Nikolai Shevchenko
Agile methodologies based on BDD and CI by Nikolai Shevchenko
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
Magento Indexes
Magento IndexesMagento Indexes
Magento Indexes
 
Final_DSPRAC (1).pdf
Final_DSPRAC (1).pdfFinal_DSPRAC (1).pdf
Final_DSPRAC (1).pdf
 

Recently uploaded

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

Vedika C project.docx

  • 1. Topic:- Develop store Manegement application No. of student names Enrollment No Branch 1] VedikaVispute 2216290037 EXTC 2] SpandanNarvekar 2216290038 EXTC Lecturer’s Name MrsagarMeheta Submission Date 12/04/2023 Under the guidance of Department of EXTC (Diploma) MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
  • 2. CERTIFICATE This Micro Project Report “Develop Store Manegement Application using C” By Ms. VedikaVispute, Mr. SpandanNarvekar Approved for The Diploma of EXTC Engineering (DIPLOMA) (First Year) For Academic Year 2023 - 2024. Examiners 1.__________________ 2.___________________ Supervisor 1. ___________________ Prof. SagarMeheta Head of the Department Principal Date: Place
  • 3. INTRODUCTION In C programming language, store management refers to the efficient allocation and management of memory resources in a computer program. Memory allocation and deallocation are critical aspects of programming, as programs need to use and release memory resources in an organized and efficient way to avoid memory leaks and crashes. In C, the programmer can explicitly allocate and deallocate memory using functions like malloc(), calloc(), realloc(), and free(). These functions allow the program to allocate memory dynamically, based on the needs of the program at runtime. Proper store management is important for ensuring that a program uses memory efficiently, avoids memory leaks and crashes, and runs smoothly. It is also an important aspect of writing secure code, as poorly managed memory can be exploited by attackers to execute malicious code.
  • 4. KEY TOPICS Here are some of the key topics related to store management in C: Memory allocation and deallocation: C provides functions like malloc(), calloc(), realloc(), and free() to allocate and deallocate memory dynamically at runtime. These functions can be used to allocate memory for variables, arrays, and structures. Pointers: Pointers are variables that store memory addresses. They are a critical part of store management in C, as they allow the programmer to manipulate memory directly. Pointers can be used to access and modify data stored in memory, and to allocate and deallocate memory dynamically. Dynamic memory allocation: C allows the programmer to allocate memory dynamically, which means that memory can be allocated and released during program execution. This is useful when the size of the data to be stored is not known at compile time, or when memory needs to be allocated in response to user input. Memory leaks: Memory leaks occur when a program fails to release memory that is no longer needed. This can lead to inefficient use of memory, and can eventually cause the program to crash. Proper store management in C involves identifying and fixing memory leaks. Memory corruption: Memory corruption occurs when a program writes to memory outside of the allocated range, or when memory is accessed after it has been freed. This can lead to unpredictable behavior, crashes, and security vulnerabilities. Proper store management in C involves preventing memory corruption through careful allocation and deallocation of memory. Overall, store management is an important aspect of programming in C, as it directly impacts the performance, stability, and security of the program
  • 5.
  • 6. CONTENTS  Add new products of your store with their details  Maintain the buyer’s records  Update Product  Edit/Delete items if needed  View all product and their quantity  View daily sales of the items  Create new users in the system  Create or offer a discount system for products while selling  Change Admin passwords  View, Generate Bill.  Add New Product
  • 7. SOURCE CODE FOR STORE MANAGEMENT SYSTEM using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.Data; namespace MyStore.Code { public class Query_DB { BussinessLogic bl = new BussinessLogic(); public int ID { get; set; } public String EMAIL { get; set; } public String PASSWORD { get; set; } public int TYPE { get; set; } public bool VerifyUser(Query_DB qdb) { bool temp = false; string query = string.Format("select count(*) from Admin where Email='{0}' and Password = '{1}'", qdb.EMAIL, qdb.PASSWORD); OleDbDataReader rec = bl.SelectQuery(query); while (rec.Read()) { if (rec[0].ToString().Equals("1"))
  • 8. { temp = true; } } return temp; } public Query_DB GetUserDetails(Query_DB cdb) { string query = string.Format("select ID,Email,Password,Type from Admin where Email='{0}' and Password = '{1}'", cdb.EMAIL, cdb.PASSWORD); OleDbDataReader rec = bl.SelectQuery(query); while (rec.Read()) { if (!rec[0].ToString().Equals(" ") && Convert.ToInt32(rec[0].ToString()) >= 1) { Query_DB utb = new Query_DB(); utb.ID = Convert.ToInt32(rec[0].ToString()); utb.EMAIL = rec[1].ToString(); utb.PASSWORD = rec[2].ToString(); utb.TYPE = Convert.ToInt32(rec[3].ToString()); return utb; } } return null; } public bool CheckUser(String email) { bool temp = false; string query = string.Format("select count(*) from UserData where UEmail= '{0}' ", email); OleDbDataReader rec = bl.SelectQuery(query); while (rec.Read()) { if (Convert.ToInt32((rec[0].ToString())) >= 1) { temp = true; } }
  • 9. return temp; } public int CheckUserExist(String name,String mobile) { string query = string.Format("select ID from UserData where UName= '{0}' and UMobile='{1}' ", name,mobile); OleDbDataReader rec = bl.SelectQuery(query); while (rec.Read()) { if (Convert.ToInt32((rec[0].ToString())) >= 1) { return Convert.ToInt32(rec[0].ToString()); } else { return 0; } } return 0; } public int GetMaxID(String tab) { String query = String.Format("Select Max(id) From {0}", tab); OleDbDataReader rec = bl.SelectQuery(query); while (rec.Read()) { if (!rec[0].ToString().Equals("")) { return Convert.ToInt32(rec[0].ToString()); } else { return 0; } } return 0; } public bool CreateUser(String email, String name, String mobile, String address, String gender) {
  • 10. bool temp = false; String query = String.Format("insert into UserData values({0}+1,'{1}','{2}','{3}','{4}','{5}')",GetMaxID("UserDat a"), email,name,mobile,address,gender); if (bl.NonQuery(query) == 1) { temp = true; } return temp; } public bool ChangePassword(Query_DB cdb) { bool temp = false; string query = string.Format("update Admin set [Password]='{0}' where [ID]={1}", cdb.PASSWORD, cdb.ID); if (bl.NonQuery(query) == 1) { temp = true; } return temp; } public bool CreateSell(String date,int uid,int discount,int total,int aby) { bool temp = false; String query = String.Format("insert into Sell values({0}+1,'{1}',{2},{3},{4},{5})", GetMaxID("Sell"),date,uid,discount,total,aby); if (bl.NonQuery(query) == 1) { temp = true; } return temp; } public bool CreateSellProduct(int sid, int pid, int qty, int price) { bool temp = false;
  • 11. String query = String.Format("insert into SellProduct values({0}+1,{1},{2},{3},{4})", GetMaxID("SellProduct"), sid, pid,qty,price); if (bl.NonQuery(query) == 1) { temp = true; } return temp; } public bool AddProduct(String name,int price,int qty) { String query = String.Format("insert into Product values({0}+1,'{1}',{2},{3})",GetMaxID("Product"), name, price, qty); if (bl.NonQuery(query) == 1) { return true; } return false; } public void GetProduct(DataGridView dg) { string query = "select PName,PPrice,PQuantity,ID as pid from Product"; bl.filldataGrid(dg, query); } public void GetProductBySearch(DataGridView dg,String se) { string query = "select PName,PPrice,PQuantity,ID as pid from Product where PName like('%" + se + "%')"; bl.filldataGrid(dg, query); } public void GetSell(DataGridView dg) { string query = "select UName,Date,Discount,Total,Sell.ID as pid,Email as ad from Sell,UserData,Admin where Sell.Uid=UserData.ID and Admin.ID=Sell.ABy"; bl.filldataGrid(dg, query); } public void GetSaleBySearch(DataGridView dg,String se) {
  • 12. string query = "select UName,Date,Discount,Total,Sell.ID as pid,Email as ad from Sell,UserData,Admin where Sell.Uid=UserData.ID and Admin.ID=Sell.ABy and UName like('%" + se + "%')"; bl.filldataGrid(dg, query); } public void GetUserSell(DataGridView dg,int id) { string query = "select PName,Quantity,Price,(Price*Quantity) as total from SellProduct,Product where SellProduct.Productid=Product.ID and Sellid="+ id +""; bl.filldataGrid(dg, query); } public void GetUserSaleBySearch(DataGridView dg,int id, String se) { string query = "select PName,Quantity,Price,(Price*Quantity) as total from SellProduct,Product where SellProduct.Productid=Product.ID and Sellid=" + id + " and PName like('%" + se + "%')"; bl.filldataGrid(dg, query); } public void GetUser(DataGridView dg) { string query = "select UName,UMobile from UserData"; bl.filldataGrid(dg, query); } public void GetUserBySearch(DataGridView dg,String ae) { string query = "select UName,UMobile from UserData where UName like ('%"+ae+"%')"; bl.filldataGrid(dg, query); } public void GetSellProduct(DataGridView dg,int sid) { string query = "select PName,Quantity,Price,(Quantity*Price) as total from SellProduct,Product where SellProduct.Sellid=" + sid + " and SellProduct.Productid=Product.ID"; bl.filldataGrid(dg, query); } public bool UpdateProduct(String name,String price,String qty,int id) {
  • 13. string query = string.Format("update Product set [PName]='{0}',[PPrice]={1},[PQuantity]={2} where ID={3}", name, price, qty,id); if (bl.NonQuery(query) == 1) { return true; } return false; } } }
  • 17. In conclusion, store management is an important aspect of programming in C. C provides functions like malloc(), calloc(), realloc(), and free() for memory allocation and deallocation. These functions allow the programmer to allocate memory dynamically based on program needs. Proper store management involves identifying and fixing memory leaks and preventing memory corruption. Effective store management is crucial for ensuring efficient use of memory, program stability, and security. CONCLUSION