"Shopping Cart": Mrs - Shaikh N.J
"Shopping Cart": Mrs - Shaikh N.J
“Shopping Cart”
Khed Solapur-413255
2023-24
AFFILIATED TO
M.S.B.T.E.
Evolution sheet for Micro Project
CO 4
CO 5
Marks out of 4
Marks out of 6 Total
for
for mars
Roll No Name of students performance
performance in out
in oral/
group activity of 10
Presentation
Name and
Signature of Mrs.Shaikh N.J.
faculty
SVP’s Swami Vivekanand Institute of Technology(Polytechnic),
Solapur
.
CERTIFICATE
is a bonafide work carried out by above students, under the guidance of Mrs.Shaikh N.J. and it is
submitted towards the fulfillment of requirement of MSBTE, Mumbai for the award of Diploma in
Computer Engineering at SVP’s COE (Polytechnic), Solapur during the academic year 2023-2024.
(Mrs.Shaikh N.J.)
Guide
(Mrs.Waghmare P. S .) (Dr. Patil S. S.)
HOD Principal
Place: Solapur
Date: / /
Acknowledgement
“Shopping Cart” has been developed successfully with a great contribution of two
students in a period of two months. We like to appreciate their guidance, encouragement
and willingness since without their support the project would not have been a success. We
would like to give our heartfelt gratitude to Principal Dr. S. S. Patil, Guide & HOD Mrs.
P.S.Waghmare who is the supervisor of our project for helping and encouraging us in
many ways to make our project a success. We would never been able to finish our work
without great support and enthusiasm from friends and support from our family. We
would like to thank the department of Computer Engineering, for giving us permission to
initiate this project and successfully finish it.
INDEX
Sr.No. Title
1. Introduction
2. Resources Used
3. Litrature review
5. Licensed software
6. Hosted service
9. Output Of Program
10. Conclusion
11. References
Introduction:-
The introduction of this cart was a great relief for shoppers. They were able to carry bulkier
items, and the process of shopping became easier for them. This gave birth to a retail
revolution that has affected global consumers for centuries.
Resources Used :-
Litrature review :-
1.These applications typically provide a means of capturing a client's payment information, but
in the case of a credit card they rely on the software module of the secure gateway provider, in
conjunction with the secure payment gateway, in order to conduct secure credit card
transactions online.
2. Some setup must be done in the HTML code of the website, and the shopping cart software
must be installed on the server which hosts the site, or on the secure server which accepts
sensitive ordering information.
3.E-shopping carts are usually implemented using HTTP cookies or query strings. In most
server based implementations however, data related to the shopping cart is kept in the session
object and is accessed and manipulated on the fly, as the user selects different items from the
cart.
4. Later at the process of finalizing the transaction, the information is accessed and an order is
generated against the selected item thus clearing the shopping cart.
5. Although the most simple shopping carts strictly allow for an item to be added to a basket to
start a checkout process (e.g., the free PayPal shopping cart), most shopping cart software
provides additional features that an Internet merchant uses to JAVA PROGRAMING MICRO
PROJECT fully manage an online store. Data (products, categories, discounts, orders,
customers, etc.) is normally stored in a database and accessed in real time by the software.
6. Shopping cart software can be generally categorized into three types of E-commerce
software.
Open source software:
1. The software is released under an open source licence and is very often free of charge.
2. The merchant has to host the software with a Web hosting service.
3. It allows users to access and modify the source code of the entire online store.
Licensed software:
2.This is most often associated with a one-time fee, the main advantages of this option are that
the merchant owns a license and therefore can host it on any web server that meets the server
requirements.JAVA PROGRAMING MICRO PROJECT
Hosted service:
1.The software is never downloaded, but rather is provided by a hosted service provider and is
generally paid for on a monthly or annual basis; also known as the application service provider
(ASP) software model.
2. Some of these services also charge a percentage of sales in addition to the monthly fee. This
model often has predefined templates that a user can choose from to customize their look and
feel.
3. Predefined templates limit how much users can modify or customize the software with the
advantage of having the vendor continuously keep the software up to date for security patches
as well as adding new features.
stepwise description:
import java.util.Scanner;
import java.util.Vector;
public class ShoppingCart
{
Vector v1 = new Vector();
Vector v2= new Vector();
Vector v3 = new Vector();
Vector v4 = new Vector();
String iname;
float icost, total;
int quantity;
int i = 0;
int pos;
public void choices()
{
int choice;
Scanner s1=new Scanner(System.in);
System.out.println("\n\n\n---------------------- ENTER YOUR CHOICE-------------------n\n\n");
System.out.println("What Do You Want To Do?");
System.out.println("1.Add To Cart");
System.out.println("2.Remove From Cart");
System.out.println("3.Show Cart");
System.out.println("4.Checkout");
System.out.println("5.Exit");
choice=s1.nextInt();
switch (choice) {
case 1: add();
break;
case 2:
if(i>0) {
remove();
}
else {
System.out.println("\n\n\n------------------
Aughs!!Your Cart Is Empty-----------------");
choices();
}
break;
case 3:
if(i>0) {
show();
}
else {
System.out.println("\n\n\n--------------
----Aughs!!Your Cart Is Empty-----------------");
choices();
}
break;
case 4:
if(i>0) {
cartTotal();
}
else {
System.out.println("\n\n\n--------------
-------You Bought Nothing---------------------");
choices();
}
break;
case 5:
System.out.println("Thank You!!!! Visit
Once Again$$!!");
break;
default:
System.out.println("Oops!! Incorrect
Choice!! Try Again");
break;
}
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$ADDING THE ITEM TO CART
$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
public void add()
{
System.out.println("\n\n\n-------------------------
---ADD-----------------------------\n\n\n");
Scanner s = new Scanner(System.in);
System.out.println("Enter the Name Of Item:");
iname=s.next();
v1.add(i,iname);
System.out.println("Enter the Price Of This Item:");
icost=s.nextInt();
v2.add(i,icost);
System.out.println("Enter the Quantiy Of This Item:");
quantity=s.nextInt();
v3.add(i,quantity);
total = quantity*icost;
v4.add(i,total);
i++;
System.out.println("\n\n\n--------------------------- ADDED----------------------------\n");
choices();
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$REMOVE THE ITEM FROM CART
$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
public void remove()
{
System.out.println("\n\n\n---------------------------REMOVE---------------------------\n\n\n");
System.out.println("What is the position of the element you want to remove");
Scanner s2 =new Scanner(System.in);
pos=s2.nextInt();
System.out.println("Removed Item is:"+v1.elementAt(pos));
v1.remove(pos);
v2.remove(pos);
v3.remove(pos);
v4.remove(pos);
i--;
System.out.println("\n\n\n---------------------------REMOVED--------------------------\n\n\n");
choices();
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$SHOWING THE ITEM IN CART
$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
public void show()
{
System.out.println("\n\n\n||******************************************************
**||");
System.out.println("||----------------------- YOUR CART------------------------||");
System.out.println("||*******************************************************||\n");
for(int j = 0;j<i;j++)
{
System.out.println("ITEM: "+v1.elementAt(j));
System.out.println("COST: "+v2.elementAt(j)+".Rs");
System.out.println("QUANTITY: "+v3.elementAt(j));
System.out.println("--------------------- --------");
System.out.println("TOTAL: "+v4.elementAt(j)+".Rs");
System.out.println("--------------------- ---------");
}
choices();
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$SHOWING THE ITEM IN CART
$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
void cartTotal()
{
float cartt=0;
for(int j = 0;j<i;j++)
{
cartt=(float) v4.elementAt(j)+cartt;
}
System.out.println("||************************ ********************************||");
System.out.println("||************************ ********************************||");
System.out.println("|| You Have Done Shopping Of:"+cartt+".Rs ||");
System.out.println("|| Pay The Total To Our Programmer and Visit us Again || ");
System.out.println("||************************ ********************************||");
System.out.println("||************************ ********************************||");
}
public static void main(String[] args) {
System.out.println("||********************************************************||");
System.out.println("||************************ ********************************||");
System.out.println("||************************ ********************************||");
System.out.println("|| ||");
System.out.println("|| SHOP HERE ||");
System.out.println("|| ||");
System.out.println("||************************ ********************************||");
System.out.println("||************************ ********************************||");
System.out.println("||************************ ********************************||");
ShoppingCart obj = new ShoppingCart();
obj.choices();
}
}
Output Of Program :-
Conclusion :-
1.This project has a real time applications this project is used to manage all the information
about shopping cart online shopping.
2.This project is especially useful for people for getting all required things for their.
References:-
1. https://www.geeksforgeeks.org/java-projects-with-source-code/
2. https://acowebs.com/history-of-shopping-cart/
3. https://en.wikipedia.org/wiki/Shopping_cart
4. https://www.ringcentral.com/gb/en/blog/definitions/shopping-cart/