0% found this document useful (0 votes)
5 views23 pages

Project Slides

Uploaded by

233606
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views23 pages

Project Slides

Uploaded by

233606
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

PROJECT0

SHOPPING CART
GROUP MEMBERS

Muhammad Ali
- 233510
Muhammad Hassan -
233516
Muhammad Haroon -
233504
INTRODUCTION

A shopping cart is an essential


component of e-commerce platforms and retail stores, facilitating
the process of selecting and purchasing products.
• In physical retail environments, a shopping cart is a wheeled
device provided by stores, allowing customers to collect items
they wish to buy.
• In the digital realm, an online shopping cart refers to the
software or application that enables users to add items,
manage their selections, and proceed to checkout to
complete their purchase.
OVERVIEW

PRODUCT CART
MANAGEMENT VISUALIZATION
Users can effortlessly The cart displays its
add, remove, and contents in a user-
update product friendly and
quantities in the cart, organized manner,
providing a flexible with images,
and dynamic descriptions, and
shopping experience. prices visible.
OVERVIEW

COST CHECKOUT
CALCULATION PROCESS

The system A streamlined and


automatically secure checkout
calculates the total process guides users
cost, factoring in through payment
discounts, and shipping options.
promotional codes,
and applicable sales
taxes.
FEATURES

1. Add and Remove Products :

Users can add products to the cart by


specifying the product ID and quantity. They can
also remove items from the cart.

2.View Cart :
Users can view the items
added to the cart, along with subtotal, discount,
sales tax, and total cost.
FEATURES

3. Item Quantity Management :

Users can add multiple quantities of a product,


and the system will update the total accordingly.

4.Apply Discounts and Sales Tax :

The system applies a various discount over the


customers shopping bill and 8% sales tax on the
cart.
ADDITIONAL FEATURES

• Product Recommendations :

Based on the categories of the items in the cart, the system


recommends other similar products.

• Cart Expiration :
The cart expires after 10
minutes, after which users will need to restart the session.

• Checkout Process :
Users can finalize their
LIBRARIES

using
using System; System.Collections.Generic;

This is the core This namespace


namespace that contains interfaces and
provides fundamental classes that define
classes and base generic collections,
classes for commonly which allow you to
used data types, create strongly typed
events, and exceptions. collections.
LIBRARIES

using System.Linq;

LINQ (Language
Integrated Query)
provides a way to query
collections in a more
readable and
expressive manner
using syntax similar to
SQL.
CLASSES

• Class Product :
This class contains details about the
products.

• Class Cart :
This class consists of methods to
add,remove products in cart.

• Class Program :
It initializes a console-based shopping
cart application, displaying a welcome message and setting up a list
FUNCTIONS

User-Defined Buillt-In

Custom functions Predefined functions


created by the provided by the
developer to handle programming language
specific tasks. that facilitate common
operations.
BUILT-IN FUNCTIONS

• Console.Clear() :
Clears the console
window.

• Console.Title :
Sets the title of the
console window.

• Console.ForegroundColor :
Changes the color of
the text output in the console.
BUILT-IN FUNCTIONS

• Environment.Exit(0) :
Terminates the
current process and returns an exit code to the
operating system.

• Console.WriteLine():
Outputs a line of
text to the console.

• Console.ReadLine():
Reads a line of
BUILT-IN FUNCTIONS

• IsExpired() :
Checks if the cart has
expired based on the current date and time.

• C$"{product.Name}":
Allows for easier and
more readable string formatting.

• int.TryParse():
Attempts to convert a
string representation of a number to its integer
BUILT-IN FUNCTIONS

• DateTime.Now :
Retrieves the current
date and time.

• TimeSpan :
Represents a time
interval.

• Console.ResetColor():
Resets the console text
color to its default, ensuring that subsequent text
USER-DEFINED
FUNCTIONS:

• static void DisplayWelcomeTitle():

Displays a welcome message and prompts the


user for their name.
• static void ChooseMobilePhone():
Displays mobile phone brands for the
user to select from.
• static void PauseScreen():
Presumably pauses the screen until
the user presses a key.
• static int GetValidIndex(int maxOption, string
prompt): Presumably prompts the user for an index
USER-DEFINED
FUNCTIONS:

• static void Header():

Presumably displays a header for the application


• DisplayWelcomeTitle():
This function displays a welcome
message and prompts the user for their
ProductRecommendation(): This function likely
provides product recommendations to the user
• AddProductToCart():
Displays product categories and allows the
user to add product to cart.
• public int ItemsCount():
USER-DEFINED
FUNCTIONS:

• RemoveProductByIndex():

Removes a product from the cart based on the


specified index
• RemoveProductByIndex():
Removes a product from the cart based on the
specified.
• AddProductToCart():
Displays product categories and allows the
user to add product to cart.
• ItemsCount():
Returns the
CALCULATING THE TOTAL COST

Subtotal
$150.00
Discounts
-$20.00
Sales Tax
$10.50
Total
$140.50
CONCLUSION

• The C# shopping cart solution provides a comprehensive and


user-friendly experience, empowering customers to manage
their purchases with ease.
• Key features include seamless product management,
transparent cost calculations, personalized recommendations,
and a streamlined checkout process.
THANK YOU

You might also like