Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
21 views

Shopping Cart Project Using C Language - GeeksforGeeks

The document outlines a Shopping Cart Project implemented in C language, detailing its functionalities such as signup, login, item search, and billing. It describes the input validation requirements for user registration and login, along with the main program structure and functions for handling user interactions. The project aims to create a simple online shopping experience through a console application.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Shopping Cart Project Using C Language - GeeksforGeeks

The document outlines a Shopping Cart Project implemented in C language, detailing its functionalities such as signup, login, item search, and billing. It describes the input validation requirements for user registration and login, along with the main program structure and functions for handling user interactions. The project aims to create a simple online shopping experience through a console application.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

C C Basics C Data Types C Operators C Input and Output C Control Flow C Functions C Arrays

Shopping Cart Project Using C Language


Last Updated : 17 Jan, 2023

Online Shopping applications are one of the favorite applications out of


all online applications. It is a very much used application in everyone’s
life. So, Let’s try to create a Shopping cart using C language which can
perform basic tasks for us.

The functionality of the Shopping Cart

Although online Shopping has many functionalities we can’t include all


of them. So, a few Functionalities of the shopping cart can use are
mentioned below:

1. Signup
2. Login
3. Search items
4. Bill

Approach and Functionality

Signup Functionality

This is the main function for a signup, Here we will check whether
the account exists or not if not we will create a new account
Following are the functionalities: Inputs are username, age, email,
password, confirm the password, and mobile number.
Validate the inputs input data should be valid otherwise account
will not create. After successful signup, you will be directly
redirected to the login page

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 1/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Login

This function implements the login features of our project. While


login in, the Email, and Password are validated and checked
whether it is already signed up. After the successful login, there is
an option to choose either Search_by_items or search by shops.

Order by Shop

In this functionality, the item is placed after selecting any shop.


Once the shop is selected the list of items is displayed with their
respective costs. Once the item is selected, you need to go to the
option Select Cart for the successful ordering of the items.

Cart

This function will show you the Total cost of your order

Data Input Conditions

Conditions for the data to be input on Sign up page are mentioned


below:

1. Name: must contain the alphabet.


2. Age: must be greater than and not equal to 0.
3. Email: must contain @, a comma, and length should be greater than
5.
4. Passwords: must contain lengths between 8 to 12 with at least one
uppercase, lowercase, number, and special character. Both password
and confirm password should be the same.
5. Mobile numbers: should contain numbers and exactly 10 digits.

Login Page

The login page asks about the data before we can enter the main home
page where we can shop. The data to be inserted are Email and
Password. Both email and password should be matching with the data
entry or the process to log in will fail.

Main Program:

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 2/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

// C Program to implement
// Shopping Cart
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <time.h>

// Structure declared for storing


// details
struct details {
char uname[50];
int age;
char password[100];
char email[100];
char mobile[10];
};

// Structure to store details about


// shops
struct Shops {
char shop[100];
char item1[20];
char item2[20];
char item3[20];
char item4[25];
int first, second, third, fourth;
};

// Array of Structure declared


struct Shops m[5];
struct details s[100];

void signup();

void account_validate();
int validate();
void login();
void cart();
void shop();
void items();
void item_order(int item);

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 3/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

void shop_initialize();
void Shop(int shop_choice);

// Global variables declared


char t_name[100], t_password1[100];
char t_password2[100], t_email[100];
char t_mobile[100];
int flag = 1, i, j = 0, count = 0, caps = 0;
int Small = 0,total = 0 ,success = 0,special = 0, numbers = 0;
int x, choice,t_age, item_choice, n,shop_choice, search_choice, confirm,c

// Driver code
int main()
{
// Loop while till which runs till break is called
while (1) {

// First Page
printf("\n\n\t******************Welcome to Shop "
"Cart*******************\n");
printf("\n\n1)SIGNUP");
printf("\n2)LOGIN");
printf("\n3)EXIT");

// Asking for choice


printf("\n\n\nEnter your choice : ");
scanf("%d", &choice);

// Switch used to check the input


// choice
switch (choice) {
case 1: {
// Signup function called
signup();
break;
}
case 2: {
// Login function called
login();
break;
}
case 3: {
printf(
"\n\t*************************Thank you "
"Visit Again***********************\n\n");

// close the program

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 4/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

return 0;
}
default: {

// Choice entered is not correct


printf("\n\nPlease enter valid choice!!\n");
break;
}
}
}
}

// Signup function declared


void signup()
{

printf("\n\n\t******************"
"Welcome to Signup "
"Page****************"
"*\n\n");

// Taking name as input


printf("\tEnter Your name : ");
scanf("%s", t_name);

// Taking email as input


printf("\tEnter Your Email : ");
scanf("%s", t_email);

// Taking password as input


printf("\tEnter Password : ");
scanf("%s", t_password1);

// Taking Confirm Password as input


printf("\tConfirm Password : ");
scanf("%s", t_password2);

// Taking Mobile number as input


printf("\tEnter Your Mobile Number : ");
scanf("%s", t_mobile);

// Taking Age as input


printf("\tEnter Your Age : ");
scanf("%d", &t_age);

x = validate();
if (x == 1) {

// Calling account_validate to check

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 5/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

// if entered details follows the defined


// rules
account_validate();

// login function appears


login();
}
}

// Signup process
int validate()
{
// Name Validation
for (i = 0; t_name[i] != '\0'; i++) {
if (!((t_name[i] >= 'a' && t_name[i] <= 'z')
|| (t_name[i] >= 'A' && t_name[i] <= 'Z'))) {
printf("\nPlease enter the valid Name!\n");
flag = 0;
break;
}
}
if (flag == 1) {
count = 0;
// Email ID Validation
for (i = 0; t_email[i] != '\0'; i++) {
if (t_email[i] == '@' || t_email[i] == '.')
count++;
}
if (count >= 2 && strlen(t_email) >= 5) {
// Password Validation
if (!strcmp(t_password1, t_password2)) {
if (strlen(t_password1) >= 8
&& strlen(t_password1) <= 12) {
caps = 0;
Small = 0;
numbers = 0;
special = 0;
for (i = 0; t_password1[i] != '\0';
i++) {
if (t_password1[i] >= 'A'
&& t_password1[i] <= 'Z')
caps++;
else if (t_password1[i] >= 'a'
&& t_password1[i] <= 'z')
Small++;
else if (t_password1[i] >= '0'
&& t_password1[i] <= '9')
numbers++;
else if (t_password1[i] == '@'
|| t_password1[i] == '&'

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 6/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

|| t_password1[i] == '#'
|| t_password1[i] == '*')
special++;
}
if (caps >= 1 && Small >= 1
&& numbers >= 1 && special >= 1) {
// Age Validation
if (t_age != 0 && t_age > 0) {
// Mobile Validation
if (strlen(t_mobile) == 10) {
for (i = 0; i < 10; i++) {
if (t_mobile[i] >= '0'
&& t_mobile[i]
<= '9') {
success = 1;
}
else {
printf(
"\n\nPlease");
printf(
"Enter Valid ");
printf(
"Mobile "
"Number\n\n");
return 0;
break;
}
}

// Success flag to know


// every inputs are valid
if (success == 1)
return 1;
}
else {
printf("\n\nPlease Enter "
"the 10 digit "
"mobile number\n\n");
return 0;
}
}
else {
printf("\n\nPlease Enter the "
"valid age\n\n");
return 0;
}
}
else {
printf(
"\n\nPlease Enter the strong "

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 7/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

"password, Your password must "


"contain atleast one "
"uppercase,Lowercase, Number "
"and special character\n\n ");
return 0;
}
}
else {
printf("\nYour Password is very "
"short\nLength must between 8 "
"to 12\n\n");
return 0;
}
}
else {
printf("\nPassword Mismatch\n\n");
return 0;
}
}
else {
printf("\nPlease Enter Valid E-Mail\n\n");
return 0;
}
}
}

// Account Validation
void account_validate()
{
for (i = 0; i < 100; i++) {
// Check account already exist
if (!(strcmp(t_email, s[i].email)
&& strcmp(t_password1, s[i].password))) {
printf("\n\nAccount Already Existed. Please "
"Login !\n\n");
login();
break;
}
}

// If no account present it creates


if (i == 100) {
strcpy(s[j].uname, t_name);
s[j].age = t_age;
strcpy(s[j].password, t_password1);
strcpy(s[j].email, t_email);
strcpy(s[j].mobile, t_mobile);
j++;
printf("\n\n\nAccount Successfully Created!\n\n");
}

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 8/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

// Login function
void login()
{
printf("\n\n\t******************"
"Welcome to Login "
"Page********************"
"****\n\n");
printf("\n\nLOGIN\n\n");
printf("\t Enter Your Email: ");

// Askinf for email


scanf("%s", t_email);
printf("\t Enter Your Password: ");

// Asking for your Password


scanf("%s", t_password1);

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


// Check whether the input email is already existed
// or not
if (!strcmp(s[i].email, t_email)) {
// Check whether the password is matched with
// the email or not
if (!strcmp(s[i].password, t_password1)) {
printf("\n\nWelcome %s, ", s[i].uname);
printf(
"Your are successfully logged in\n\n ");
printf(
"We Provide two ways of search : \n ");
printf("1) Search By Shop\n ");
printf("2) Search by item\n ");
printf("3) Exit\n\n");
printf("Please Enter your choice : ");
scanf("%d", &search_choice);

// Getting the input whether


// the user are going to search
// /Order by Shop or search/
// order by item.
switch (search_choice) {
case 1: {
shop();
break;
}
case 2: {
items();
break;
}

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 9/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

case 3: {
// main function called again
main();
break;
}
default: {
// Choice entered is wrong
printf("Please Enter the valid "
"choice!!!\n\n");
break;
}
}
break;
}
else {
// Password entered is wrong
printf("\n\nInvalid Password!!\n ");
printf("Please Enter the correct "
"password\n\n");
login();
break;
}
}
else {
// If details are incorrect
printf("\n\nAccount doesn't exist, Please "
"signup!!\n\n ");
main();
break;
}
}
}

// Calling shop_initialize function


void shop_initialize()
{
// All the Products avaiable are being stored
// in variables
strcpy(m[1].shop, "Puma");
strcpy(m[1].item1, "puma sneaker V2");
strcpy(m[1].item2, "mens dryflex");
strcpy(m[1].item3, "one8x puma");
m[1].first = 3499;
m[1].second = 2999;
m[1].third = 5999;

strcpy(m[2].shop, "USA");
strcpy(m[2].item1, "US polo Tshirt");
strcpy(m[2].item2, "Shoes");

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 10/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

strcpy(m[2].item3, "shirt");
m[2].first = 999;
m[2].second = 2000;
m[2].third = 1499;

strcpy(m[3].shop, "WROGN");
strcpy(m[3].item1, "Mens Watch");
strcpy(m[3].item2, "mens solid jacket");
strcpy(m[3].item3, "casusal T-shirt");
m[3].first = 2000;
m[3].second = 2239;
m[3].third = 799;
}

// shop Function is called


void shop()
{
// Shop Products are collected
shop_initialize();

// Showing all the availableshop


printf("\n\nPlease Choose the Shop \n\n1) %s\n2) "
"%s\n3) %s",
m[1].shop, m[2].shop, m[3].shop);
printf("\n4) Exit\n\nPlease ");
printf("select the shop\t");

// Asking for choice


scanf("%d", &shop_choice);
if (shop_choice > 4) {
printf("Please Enter the");
printf("valid choice\n\n");
shop();
}
else if (shop_choice == 4)
main();
else{
// Shop function called with your choice
Shop(shop_choice);
}
}

// Function to implement the shop


void Shop(int shop_choice)
{
// total variable
total = 0;

while (1) {

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 11/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

printf("\n\nList of items available ");

printf("in %s\n\n1) %s --> %d\n",


m[shop_choice].shop, m[shop_choice].item1,
m[shop_choice].first);

printf("2) %s --> %d\n3) %s --> %d\n",


m[shop_choice].item2, m[shop_choice].second,
m[shop_choice].item3, m[shop_choice].third);

printf("4) Cart\n5) Exit\n\nPlease Enter ");


printf("Your Choice : ");
scanf("%d", &item_choice);

// Get the input for no of items to calculate the


// total amount
if (item_choice == 1) {
printf("Please Enter the ");
printf("Count of %s\t", m[shop_choice].item1);
scanf("%d", &n);
total = total + (n * m[shop_choice].first);
}
else if (item_choice == 2) {
printf("Please Enter the Count");
printf("of %s : ", m[shop_choice].item1);
scanf("%d", &n);
total = total + (n * m[shop_choice].second);
}
else if (item_choice == 3) {
printf("Please Enter the Count");
printf("of %s : ", m[shop_choice].item3);
scanf("%d", &n);
total = total + (n * m[shop_choice].third);
}

else if (item_choice == 4) {
cart();
}
else if (item_choice == 5) {
shop();
}
else {
printf("Please Enter the");
printf("valid Choice\n\n");
}
}
}

void items()
{

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 12/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

total = 0;
// Initialize all the Shop and their items
shop_initialize();
while (1) {

//Showing all the choices of items


printf("\n\nPlease choose the ");
printf("item\n\n1) %s /t--> %d\n2) %s/t --> %d",
m[1].item1, m[1].first, m[1].item2,
m[1].second);

printf("\n3) %s/t --> %d\n4) %s/t --> %d\n",


m[1].item3, m[1].third, m[2].item1,
m[2].first);

printf("5) %s/t --> %d\n6) %s/t --> %d\n",


m[2].item2, m[2].second, m[2].item3,
m[2].third);

printf("7) %s/t --> %d\n8) %s/t --> %d\n",


m[3].item1, m[3].first, m[3].item2,
m[3].second);

printf("9) %s/t --> %d\n10) Cart\n", m[3].item3,


m[3].third);
printf("11) Exit");
printf("\nPlease Enter Your Choice : ");
scanf("%d", &item);
if (item > 10) {
printf("Please Enter the ");
printf("valid choice\n\n");
items();
}
// Moves to the cart
else if (item == 10)
cart();
else if (item == 11)
// exit(1);
return;
// Function to get the no of items and to calculate
// the total amount of the order.
else
item_order(item);
}
}

// item_order function to process items ordered


void item_order(int item)
{

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 13/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

if (item >= 1 && item <= 3)


shop_id = 1;
else if (item >= 4 && item <= 6)
shop_id = 2;
else
shop_id = 3;
if ((item % 3) == 1) {
// Asking for choice of product
printf("Please Enter the");
printf(" Count of %s : ", m[shop_id].item1);
scanf("%d", &n);
total = total + (n * m[shop_id].first);
}
else if ((item % 3) == 2) {
// Asking for choice of product
printf("Please Enter the ");
printf("Count of %s\t", m[shop_id].item2);
scanf("%d", &n);
total = total + (n * m[shop_id].second);
}
else if ((item % 3) == 0) {
// Asking for choice of product
printf("Please Enter the Count of %s\t",
m[shop_id].item3);
scanf("%d", &n);
total = total + (n * m[shop_id].third);
}
}

// Function to implement the cart


void cart()
{
// details about the products in cart
printf("\n\n\n\n\t*********************************"
"Cart*********************************");
printf("\n\nYour Total Order Amount is : %d\n", total);
printf("\n\nDo You wish to order (y=1/n=0) : ");
scanf("%d", &ch);
if (ch == 1) {
printf("\n\nThank You for your Order");
printf("\nYour item is on the way. Welcome again "
"\n\n ");

main();
return;
}
else if (ch == 0) {
printf("To cancel Your Order = 1 \nTo Exit = 0 ");
printf("Select option : ");
scanf("%d", &confirm);

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 14/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

if (confirm == 1) {
//Failed
printf("\n\nOops! Your item is cancelled!! "
"Exiting..\n\n");
printf("Thank You visit again!\n");
main();
return;
}
else {
// Product is bought
printf("\n\n\t\t************Thank "
"You******************\n\n");
login();
}
}
else {
// Asking for choice
printf("\n\nPlease Enter the correct choice\n\n ");
cart();
}
}

Output:
Welcome Page:

First Page of C

Sign Up:

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 15/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Sign Up Page in C

Login Page:

Login Page in C

List of Shops and Items:

List of Shops and Items

Bill Generated:

Bill Generated

Master C with our C Programming online course! From basics to


advanced topics like data structures, enhance your skills with hands-
on coding challenges. Take the Three 90 Challenge—complete 90%

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 16/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

in 90 days, and earn a 90% refund. Start your learning journey


today!

Comment More info Next Article


Test Cases For Signup Page Using
Placement Training Program C Language

Similar Reads
Shopping Cart app using React
In this article, we will create an Interactive and Responsive Shopping Cart
Project Application using the famous JavaScript FrontEnd library ReactJS…

9 min read

Project Idea | Shopping Made Easy


Project Title: Shopping Made Easy Introduction: Today, shopping in a
supermarket store requires standing in a long queue for billing. This lead…

2 min read

How to Add Cart in a Web Page using Django?


Adding a shopping cart to a web page using Django is a crucial step when
building an e-commerce website or any other application that involves…

6 min read

10 Exciting Project Ideas Using Large Language Models (LLMs)


Today the world is run by technology and the latest wizard of the tech
world is the ChatGPT models and other LLMs(Large Language Models).…

12 min read

Difference Between C Language and LISP Language


C Language: C is the procedural Programming language. It was designed
to be compiled using a compiler. The Language has small and fixed…

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 17/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks
2 min read

Project Idea | Sign Language Translator for Speech-Impaired


Project Title : Sign Language Translator for Speech-impaired Introduction:
The main objective is to translate sign language to text/speech. The…

3 min read

Project Idea | Audio to Sign Language Translator


Overview Sign language is a visual language that is used by deaf people
as their mother tongue. Unlike acoustically conveyed sound patterns, sig…

4 min read

Project Idea | (Project Approval System)


Academic Project management is a major issue which is faced by many
educational institutes, the main reason for this is there is no automated…

2 min read

Draw a smiley face using Graphics in C language


Prerequisite: graphics.h, How to include graphics.h in CodeBlocks? The
task is to write a C program to draw a smiley face using graphics in C.To…

2 min read

GE Stock Price Analysis Using R Language


Stock analysis is a technique used by investors and traders to make
purchasing and selling choices. Investors and traders strive to obtain an…

5 min read

Test Cases For Signup Page Using C Language


Prerequisite: Structure in C In this article, we are going to check on how to
check test cases for the signup page using C language. The signup page …

6 min read

Language Translator using React


https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 18/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Translator is a web application software tool that facilitate the translation


of text from one language to another language using ReactJS. This…

8 min read

Language Translator Using Google API in Python


API stands for Application Programming Interface. It acts as an
intermediate between two applications or software. In simple terms, API…

3 min read

Project Idea | Website Generator using Facebook/Instagram Page


Project Title: Website Generator using their Facebook/Instagram Page
Introduction: The Idea is to provide a website for those students who…

1 min read

Project Idea | Bus Notification System Using Crowdsourcing


Project Title: Bus Notification System Using Crowdsourcing Introduction:
Most of the daily commuters of RTC are curious to know the exact time o…

3 min read

Project Idea | Pavement distress detection using Drone Imaging


Project Title: Pavement Distress Detection Using Drone Imaging
Introduction: Street pavement construction and repair includes a huge pa…

5 min read

Invisible Cloak using OpenCV | Python Project


Have you ever seen Harry Potter's Invisible Cloak; Was it wonderful?
Have you ever wanted to wear that cloak? If Yes!! then in this post, we wi…

4 min read

Project Idea - Searching news from Old Newspaper using NLP


We know that the newspaper is an enriched source of knowledge. When
a person needs some information about a particular topic or subject he…

5 min read

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 19/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Create a new Django project in Pycharm using Pycharm Terminal


PyCharm is one of the most popular Python-IDE developed by JetBrains
used for performing scripting in Python language. PyCharm provides…

2 min read

Spring MVC Project - Retrieving Population, Area and Region Details…


REST API is more popular nowadays as we can able to get a variety of
information like Population, Area, region, sub-region, etc., One such RES…

4 min read

How to Make a Project Using Spring Boot, MySQL, Spring Data JPA,…
For the sample project, below mentioned tools got used Java 8Eclipse IDE
for developmentHibernate ORM, Spring framework with Spring Data…

4 min read

JUnit - Test HTTPClient using Maven Project


HTTP Client can provide synchronous and asynchronous request
mechanisms via the following three core classes: HttpRequest: Request…

6 min read

Working with Microsoft Excel Using Apache POI and JExcel API with …
In the software industry, information needs to be portable and hence any
valid data is available in XLS and XLSX formats i.e. excel formats. In orde…

7 min read

Apache Kafka - Real World Project with Twitter using Java


Apache Kafka is a publish-subscribe messaging system. A messaging
system let you send messages between processes, applications, and…

5 min read

Project Idea | (Games using Hand Gestures)


Idea To design games using hand gestures. Simple games like pacman or
you can build it yourself using some cool libraries available like in python…
https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 20/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

1 min read

Project Idea | (Dynamic Hand Gesture Recognition using neural…


Introduction Hand gesture recognition system is used for interfacing
between computer and human using hand gesture. We wish to make a…

3 min read

Project Idea | Motion detection using Background Subtraction…


Foreground detection based on video streams is the first step in computer
vision applications, including real-time tracking and event analysis. Many…

4 min read

Project Idea | Personality Analysis using hashtags from tweets


Introduction The project is based on the concept of analyzing the
personality of an individual, and plotting the sentiments of tweets…

5 min read

Project Idea | Analysis of Emergency 911 calls using Association Rul…


Introduction Analysing emergency calls dataset and discovering hidden
trends and patterns will help in ensuring that the emergency response…

7 min read

Project Idea | Airport Security Using Beacon


Project Title : Airport Security Using Beacon Introduction: Airport security
refers to the techniques and methods used in an attempt to protect…

5 min read

Corporate & Communications Address:

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 21/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks
A-143, 7th Floor, Sovereign Corporate
Tower, Sector- 136, Noida, Uttar Pradesh
(201305)

Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305

Advertise with us

Company Explore
About Us Job-A-Thon Hiring Challenge
Legal Hack-A-Thon
Privacy Policy GfG Weekly Contest
Careers Offline Classes (Delhi/NCR)
In Media DSA in JAVA/C++
Contact Us Master System Design
GFG Corporate Solution Master CP
Placement Training Program GeeksforGeeks Videos
Geeks Community

Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android Tutorial

Data Science & ML Web Technologies


Data Science With Python HTML
Data Science For Beginner CSS
Machine Learning JavaScript
ML Maths TypeScript
Data Visualisation ReactJS
Pandas NextJS
NumPy NodeJs
NLP Bootstrap
Deep Learning Tailwind CSS

Python Tutorial Computer Science


https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 22/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Python Programming Examples GATE CS Notes


Django Tutorial Operating Systems
Python Projects Computer Network
Python Tkinter Database Management System
Web Scraping Software Engineering
OpenCV Tutorial Digital Logic Design
Python Interview Question Engineering Maths

DevOps System Design


Git High Level Design
AWS Low Level Design
Docker UML Diagrams
Kubernetes Interview Guide
Azure Design Patterns
GCP OOAD
DevOps Roadmap System Design Bootcamp
Interview Questions

School Subjects Commerce


Mathematics Accountancy
Physics Business Studies
Chemistry Economics
Biology Management
Social Science HR Management
English Grammar Finance
Income Tax

Databases Preparation Corner


SQL Company-Wise Recruitment Process
MYSQL Resume Templates
PostgreSQL Aptitude Preparation
PL/SQL Puzzles
MongoDB Company-Wise Preparation
Companies
Colleges

Competitive Exams More Tutorials


JEE Advanced Software Development
UGC NET Software Testing
UPSC Product Management
SSC CGL Project Management
SBI PO Linux
SBI Clerk Excel
IBPS PO All Cheat Sheets
IBPS Clerk Recent Articles

Free Online Tools Write & Earn


Typing Test Write an Article
Image Editor Improve an Article

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 23/24
2/24/25, 5:14 PM Shopping Cart Project Using C Language - GeeksforGeeks

Code Formatters Pick Topics to Write


Code Converters Share your Experiences
Currency Converter Internships
Random Number Generator
Random Password Generator

DSA/Placements Development/Testing
DSA - Self Paced Course JavaScript Full Course
DSA in JavaScript - Self Paced Course React JS Course
DSA in Python - Self Paced React Native Course
C Programming Course Online - Learn C with Data Structures Django Web Development Course
Complete Interview Preparation Complete Bootstrap Course
Master Competitive Programming Full Stack Development - [LIVE]
Core CS Subject for Interview Preparation JAVA Backend Development - [LIVE]
Mastering System Design: LLD to HLD Complete Software Testing Course [LIVE]
Tech Interview 101 - From DSA to System Design [LIVE] Android Mastery with Kotlin [LIVE]
DSA to Development [HYBRID]
Placement Preparation Crash Course [LIVE]

Machine Learning/Data Science Programming Languages


Complete Machine Learning & Data Science Program - [LIVE] C Programming with Data Structures
Data Analytics Training using Excel, SQL, Python & PowerBI - C++ Programming Course
[LIVE] Java Programming Course
Data Science Training Program - [LIVE] Python Full Course
Mastering Generative AI and ChatGPT
Data Science Course with IBM Certification

Clouds/Devops GATE
DevOps Engineering GATE CS & IT Test Series - 2025
AWS Solutions Architect Certification GATE DA Test Series 2025
Salesforce Certified Administrator Course GATE CS & IT Course - 2025
GATE DA Course 2025
GATE Rank Predictor

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

https://www.geeksforgeeks.org/shopping-cart-project-using-c-language/ 24/24

You might also like