Professional Documents
Culture Documents
JPR Project
JPR Project
A PROJECT REPORT ON
“ Shopping Cart ”
Submitted to
MSBTE
In Partial Fulfilment of the Requirement for the Award of
DEPLOMA IN
COMPUTER ENGINEERING
Submitted By
Shaikh Ayan Dilawar (2016690053)
Shinde Sudershan Rajendra (2016690066)
Sonwane Shriram Radesham (2116690052)
Dudhate Dnyneshwar Bhagawat (2116690042)
2021-2022
1|P age
JAVA PROGRAMING MICRO PROJECT
CERTIFICATE
THIS IS CERTIFY THAT THE PROJECT ENTITLED
(Ms.Ohel V.R)
Project Guide
(Prof.Bharti S.M)
Principal
2|P age
JAVA PROGRAMING MICRO PROJECT
INDEX
1.0 Rationale 04
9.0 Conclusion 26
3|P age
JAVA PROGRAMING MICRO PROJECT
1.0 Rationale:-
1. A shopping cart is a piece of software that acts as an
online store's catalog and
ordering process.
2. shopping cart is the interface between a company's
Web site.
3. Its deeper infrastructure, allowing consumers to
select merchandise; review what they have selected;
make necessary modifications or additions; and
purchase the merchandise
4. Shopping carts can be sold as independent pieces of
software so companies can integrate them into their
own unique online solution or they can be offered
as a feature from a service that will create and host
a company's e-commerce website.
4|P age
JAVA PROGRAMING MICRO PROJECT
5|P age
JAVA PROGRAMING MICRO PROJECT
6|P age
JAVA PROGRAMING MICRO PROJECT
8|P age
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.
9|P age
JAVA PROGRAMING MICRO PROJECT
stepwise description:
1. We collected information from various sources
available.
2. Thus execution of project was made.
10 | P a g e
JAVA PROGRAMING MICRO PROJECT
11 | P a g e
JAVA PROGRAMING MICRO PROJECT
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;
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();
}
13 | P a g e
JAVA PROGRAMING MICRO PROJECT
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:
14 | P a g e
JAVA PROGRAMING MICRO PROJECT
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;
}
15 | P a g e
JAVA PROGRAMING MICRO PROJECT
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$ADDING THE
ITEM TO CART $$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
icost=s.nextInt();
v2.add(i,icost);
16 | P a g e
JAVA PROGRAMING MICRO PROJECT
choices();
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$REMOVE THE
ITEM FROM CART $$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
System.out.println("\n\n\n-------------------------
--REMOVE---------------------------\n\n\n");
choices();
}
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
18 | P a g e
JAVA PROGRAMING MICRO PROJECT
$$$$$$$$$$$$$$$$$$$$$$$$$$$SHOWING
THE ITEM IN 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));
19 | P a g e
JAVA PROGRAMING MICRO PROJECT
System.out.println("---------------------
--------");
System.out.println("TOTAL:
"+v4.elementAt(j)+".Rs");
System.out.println("---------------------
---------");
}
choices();
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$SHOWING
THE ITEM IN CART
$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
void cartTotal()
{
20 | P a g e
JAVA PROGRAMING MICRO PROJECT
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("||************************
********************************||");
21 | P a g e
JAVA PROGRAMING MICRO PROJECT
System.out.println("||************************
********************************||");
System.out.println("||************************
********************************||");
System.out.println("||************************
********************************||");
System.out.println("||
||");
System.out.println("|| SHOP
HERE ||");
System.out.println("||
||");
System.out.println("||************************
********************************||");
22 | P a g e
JAVA PROGRAMING MICRO PROJECT
System.out.println("||************************
********************************||");
System.out.println("||************************
********************************||");
obj.choices();
}
}
23 | P a g e
JAVA PROGRAMING MICRO PROJECT
24 | P a g e
JAVA PROGRAMING MICRO PROJECT
25 | P a g e
JAVA PROGRAMING MICRO PROJECT
9.0 Conclusion:-
26 | P a g e