0% found this document useful (0 votes)
4 views25 pages

Java Co PDF

The document presents a micro project report on 'Online Shoppiee,' a Java-based application simulating an online shopping system. It outlines the project's objectives, methodology, and outcomes, emphasizing the use of core Java concepts such as Object-Oriented Programming and GUI design. The report also includes acknowledgments, a detailed action plan, and the program code demonstrating the application's functionality.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views25 pages

Java Co PDF

The document presents a micro project report on 'Online Shoppiee,' a Java-based application simulating an online shopping system. It outlines the project's objectives, methodology, and outcomes, emphasizing the use of core Java concepts such as Object-Oriented Programming and GUI design. The report also includes acknowledgments, a detailed action plan, and the program code demonstrating the application's functionality.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

A

Micro Project Report On

Online Shoppiee

Course Name: - Java Programming.

Semester: - IV

Diploma In Computer Engineering

Guided By

Sayyed Waliullah

Submitted By

1. Farhan - 09
2. Ahmad V - 36
3. Faeez - 06
4. Tanveer- 07

Jamia Institute of Technology – 425415


[2025 - 2026]

Department of Computer Engineering


MAHARASHTRA STATE
BOARD OF TEACHNICAL EDUCATION
Certificate
This is to certify those following students of 4th Semester of Diploma in
Computer Engineering of Institution Jamia Institute of technology,
Institute Code 0366 has satisfactorily completed the Micro Project
work in Course Java Programming, Course Code JAVA- 314317 for
the academic year 2025-2026 as prescribed in the curriculum.
Roll
Enrollment No. Seat No. Student Name
no.
09 24611170287 Farhan

36 24611170319 Ahmad V

06 24611170283 Faeez B

07 24611170284 Tanveer B

Place: Akkalkuwa Date: ………………………….

Subject Teacher Head of the department Principal


Java Micro Project SY-CO Online Shoppiee

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

Abstract

The project titled “Online Shopiee” is a mini Java-based application that

replicates the basic functionality of an online shopping system. It is developed

using core Java concepts such as Object-Oriented Programming, GUI design

(using Java Swing/JavaFX), and file handling or database connectivity. The

system enables users to browse products, add them to a shopping cart, and

simulate a checkout process. The purpose of this project is to provide a

practical understanding of real-time e-commerce functionality and enhance

programming skills through hands-on development. This application serves as a

foundation for building more advanced e-commerce platforms in the future.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

Acknowledgement
I would like to express my heartfelt gratitude to my project guide

[Sayed Waliulla] for their invaluable support, continuous guidance,

and encouragement throughout the course of this project. Their expert

advice and knowledge played a vital role in shaping this project.

I am also thankful to the Maharashtra State Board of Technical

Education (MSBTE) for giving us this platform to showcase our

technical skills through such projects.

Lastly, I would like to thank my family, classmates, and friends for

their constant motivation, inspiration, and cooperation during the

development of this micro project.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

Micro Project Proposal


Online Shoppiee

1.0 Aims/Benefits of the Micro-Project:


To learn/understand the concepts of the Java programming and apply at the places required.
The main aim of this micro project is to understand the Java code logic designed for performing Online
Shopping.

2.0 Course Outcomes Addressed:


1. Develop Java program using Object Oriented methodology .
2. Understand inheritance in Java programming
3. Implement exception Exception Handling.
4. Develop programs using graphics and applet.
5. Develop programs for handling I/O and file streams.
6. Develop programs using multithreading.
7.
3.0 Proposed Methodology:
After choosing the topic for our micro-project ,we decided to collect some information related to our
project topic and do some research on it. Based on that information we would be developing some logic
for carrying out different various functions related to online shopping.

4.0 Action Plan:

Planned Planned Name of Responsible Team


SrNo Details of Activity
Start Date Finish Date Members

1 Topic Discussion & Selection

2 Review of Literature

3 Aim/Benefits& Importance

4 Resources Required

5 Analysis of Collected Data

6 Design of System

7 Coding& Testing of Modules

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

8 Coding& Testing of Modules

9 Coding& Testing of Modules

10 Integration of System Modules

11 Testing of System

12 Compilation of Report

13 Compilation of Presentation

14 Presentation of Seminar

15 Final Submission

5.0 Resources Required:


SrNo Name of Resource/Material Specification Qty. Remarks
Desktop with Intel -
Core 2 Duo 2.93
1 Hardware Resource GHz, RAM 2GB, 1
HDD 160 GB

Software Resource Rational Rose ,Star -


2 1
UML
3 Any Other Resource - - -

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee
Annexure – II

Micro Project Report

1.0 Rationale:
The basic application for online shopping i.e in that user can creates his/her account .using
this application user can shop anything what they want.

2.0 Aims/Benefits of the Micro-Project:


To learn/understand the concepts of the Java programming i.e learning concept of object
oriented programming, Encapsulation ,polymorphism ,inheritance ,applet etc., The main aim of
this micro project is to understand the Java code logic designed for performing Online Shopping.

3.0 Course Outcomes Achieved:


1. Develop Java program using Object Oriented methodology.
2. Understand inheritance in Java programming
3. Implement exception Exception Handling.
4. Develop programs using graphics and applet.
5. Develop programs for handling I/O and file streams.
6. Develop programs using multithreading.

4.0 Literature Review:


The online shopiee provides user to shop for daily groceries without any efforts easily
from their device.

5.0 Actual Methodology Followed:

After the topic for our project was selected, we segregated the work load as follows

1. Researching and collecting the required information was done by our team members
abuzaid , sami and hamza.
2. Arrangement of this work in appropriate manner and cross checking of the same was done.
3. Compiling this work and formatting of the report was done by our team members Sami and
Hamza.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

6.0 Actual Resources Used:


Sr
Name of Resource/Material Specification Qty. Remarks
No
Desktop with Intel -
Core 2 Duo 2.93
1 Hardware Resource GHz, RAM 2GB, 1
HDD 160 GB

Star UML , -
2 Software Resource 1
Rational Rose
3 Any Other Resource - - -

7.0 Outputs of Micro-Project:


• Program Code –

import [Link];
import [Link];
import [Link];

class ShopDetails {
private String accno;
private String name;
private long balance;

Scanner sc = new Scanner([Link]);

String id;
String productName;
int quantity;
double price;
double totalPrice;

double overAllPrice = 0.0;


double cgst, sgst, subtotal = 0.0, discount = 0.0;
char choice;

ShopDetails() {
}

ShopDetails(String id, String pname, int qty, double price, double totalPrice) {
[Link] = id;
[Link] = pname;
[Link] = qty;
[Link] = price;
[Link] = totalPrice;

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

}
// Open Account
public void openAccount() {
[Link]("Enter Account No: ");
accno = [Link]();
[Link]("Enter Name: ");
name = [Link]();
[Link]("Enter Card Balance: ");
balance = [Link]();
[Link]("---------------------------");
}

// Show Account
public void showAccount() {
[Link]("Name: " + name);
[Link]("Account No: " + accno);
[Link]("Balance: " + balance);
[Link]("---------------------------");
}

// Deposit
public void deposit() {
[Link]("Enter amount to deposit: ");
long amt = [Link]();
balance += amt;
}

// Display header
public static void displayFormat() {
[Link]("-------------------------------------------------------------");
[Link]("ID\tName\tQty\tPrice\tTotal");
[Link]("-------------------------------------------------------------");
}

// Display product
public void display() {
[Link]("%s\t%s\t%d\t%.2f\t%.2f\n",
id, productName, quantity, price, totalPrice);
}

// Shopping
public void shopping() {
List<ShopDetails> product = new ArrayList<>();

do {

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

[Link](); // clear buffer


[Link]("\nEnter Product Details:");
[Link]("Product ID: ");
id = [Link]();

[Link]("Product Name: ");


productName = [Link]();

[Link]("Quantity: ");
quantity = [Link]();

[Link]("Price per unit: ");


price = [Link]();

totalPrice = price * quantity;


overAllPrice += totalPrice;

[Link](new ShopDetails(id, productName, quantity, price, totalPrice));

[Link]("Add more items? (y/n): ");


choice = [Link]().charAt(0);

} while (choice == 'y' || choice == 'Y');

displayFormat();

for (ShopDetails p : product) {


[Link]();
}

[Link]("\nTotal Amount: " + overAllPrice);

discount = overAllPrice * 0.02;


[Link]("Discount: " + discount);

subtotal = overAllPrice - discount;


[Link]("Subtotal: " + subtotal);

sgst = subtotal * 0.12;


cgst = subtotal * 0.12;

[Link]("SGST (12%): " + sgst);


[Link]("CGST (12%): " + cgst);

double invoice = subtotal + sgst + cgst;

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

[Link]("Final Bill: " + invoice);


[Link]("------ Thank You for Shopping ------");
}

// Search account
public boolean search(String ac_no) {
if ([Link](ac_no)) {
showAccount();
return true;
}
return false;
}
}

public class Shop {


public static void main(String[] args) {
Scanner sc = new Scanner([Link]);

[Link]("Enter number of customers: ");


int n = [Link]();

ShopDetails[] C = new ShopDetails[n];

for (int i = 0; i < n; i++) {


C[i] = new ShopDetails();
C[i].openAccount();
}

int ch;

do {
[Link]("\n1. Display Accounts");
[Link]("2. Search Account");
[Link]("3. Deposit");
[Link]("4. Shopping");
[Link]("5. Exit");

[Link]("Enter choice: ");


ch = [Link]();

switch (ch) {
case 1:
for (ShopDetails c : C)
[Link]();
break;

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

case 2:
[Link]("Enter account no: ");

String ac_no = [Link]();


boolean found = false;

for (ShopDetails c : C) {
if ([Link](ac_no)) {
found = true;
break;
}
}

if (!found)
[Link]("Account not found!");
break;

case 3:
[Link]("Enter account no: ");
ac_no = [Link]();
found = false;

for (ShopDetails c : C) {
if ([Link](ac_no)) {
[Link]();
found = true;
break;
}
}

if (!found)
[Link]("Account not found!");
break;

case 4:
[Link]("Enter account no: ");
ac_no = [Link]();
found = false;

for (ShopDetails c : C) {
if ([Link](ac_no)) {
[Link]();
found = true;
break;

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

}
}

if (!found)

[Link]("Account not found!");


break;

case 5:
[Link]("Goodbye!");
break;
}

} while (ch != 5);


}
}

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

Output Of The Above Program –

• Class shop contains main function. It accepts number of customers, for getting the number
of customers and customer details we use the array of object concept. For that we declare
the openAccount() function.

• In the main function ,the menu of the mart opens showing different options
for thecustomer like …1. Display Account details
2. Shop Groceries…etc., Customer should choose from the
givenoptions

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

• Here , user chooses choice1 i.e Display All Account Details. It displays all account
detailswhich is present in a store/data in sequential manner.

In Choice 2 customer searches for the specific account whichever he/her want to
see. Customer get that account details by enteringthe account number. If the
account numberis present it displays the details of that specific account.

• If customer enters the account number which does not exists , then it will
shows themessage “Search failed! Account doesn’t exist..!! “

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

• If Customer wants to add balance in his/her account then, they can do that. For this customer
need to their account number and after that insert amount they want to insert. For this we use
the deposit() function.

• If customer enters the account number which does not exists , then it will shows the
message “Search failed! Account doesn’t exist..!! “

• Choice 4 i.e., “Shop Groceries “. This will help the user to shop for the products by passing
the control to shopping () function. The function contains the array list for storing the items
entered.
If inputs the id, product name, quantity and the price of that product. The reason forinputting
price is to get more justification of the product from user.
It continues to get products till user say’s NO.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

Later the bill be prepared in the format specified in display format() function and display().

In the bill , it displays the total price , discount is calculated as “overall price* 2 / 100 “

Subtotal is calculated as “Overall price – discount “, sgst and cgst is calculated as


“ Overall price * 12 / 100”.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

• Choice5 is EXIT , when user select this choice the program will stop running and get the
user out of the application.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

8.0 Concept’s That We Used In Java Project :

• Java Package
A java package is a group of similar types of classes, interfaces and [Link]
in java can be categorized in two form, built-in package and user-defined [Link]
are many built-in packages such asjava, lang, awt, javax, swing, net, io, util, sql [Link],
we will have the detailed learning of creating and usinguser-defined packages.
Types of packages:
1. User defined packages
2. In built packages
3. Built-in Packages
These packages consist of a large number of classes which are a part of Java [Link] of
the commonly used built-inpackages are:

1) [Link]:Contains language support classes(e.g classed which defines primitive data


types, math operations). Thispackage is automatically imported.
2) [Link]: Contains classed for supporting input / output operations.

3) [Link]: Contains utility classes which implement data structures like Linked List,
Dictionary and support ; for Date / Time operations.
4) [Link]: Contains classes for creating Applets.

5) [Link]: Contain classes for implementing the components for graphical user interfaces (like
button , ;menus etc).
6) [Link]: Contain classes for supporting networking operations.

• Array:
Array in java are non-primitive data type that store elements of a similar data type in the memory.
Arrays in java can store both primitive and non-primitive types of data in it.
Types of Arrays in java:
1. Single Dimensional Array
2. Multidimensional Array

• Java Scanner:

Scanner class in Java is found in the [Link] package. Java provides various ways to read input
from the keyboard, [Link] class is one of them.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

The Java Scanner class breaks the input into tokens using a delimiter which is whitespace by
default. It provides manymethods to read and parse various primitive values.
The Java Scanner class is widely used to parse text for strings and primitive types using a
regular expression. It is the simplest way to get input in Java. By the help of Scanner in Java,
we can get input from the user in primitive types such as int, long, double, byte, float, short,
etc.
The Java Scanner class extends Object class and implements Iterator and Closeable interfaces.
• Method :

A method is a way to perform some task. Similarly, the method in Java is a collection of
instructions that performs a specific task. It provides the reusability of code. We can also
easily modify code using methods. In this section, we will learn what is a method in Java,
types of methods, method declaration, and how to call a method in Java.
Methods that we used in our programs :
Void open Account()
Void show Account ()
Void deposit()
• Constructor:
A constructor is a block of codes similar to the method. It is called when an instance of the class
is created. At the time ofcalling constructor, memory for the object is allocated in the memory.
It is the special type of method to initialize the object.
Constructor we used in our program:
Default constructor
Parameterized constructor

• Java List:
List in Java provides the facility to maintain the ordered collection. It contains the index-based
methods to insert, update, delete and search the elements. It can have the duplicate elements also.
We can also store the null elements in the list.

The List interface is found in the [Link] package and inherits the Collection interface. It is
a factory of ListIteratorinterface. Through the ListIterator, we can iterate the list in forward
and backward directions

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

• Do – while Loop :

The Java do-while loop is used to iterate a part of the program repeatedly, until the specified
condition is true. If thenumber of iteration is not fixed and you must have to execute the
loop at least once, it is recommended to use a do-while loop.

Java do-while loop is called an exit control loop. Therefore, unlike while loop and for loop,
the do-while check the condition at the end of loop body. The Java do-while loop is executed
at least once because condition is checked afterloop body.

• Switch Case :
The Java switch statement executes one statement from multiple conditions. It is like if-else-if
ladder statement. The switch statement works with byte, short, int, long, enum types, String and
some wrapper types like Byte, Short, Int, andLong. Since Java 7, you can use strings in the
switch statement.
In other words, the switch statement tests the equality of a variable against multiple values.
We have used switch Case
➢ To Display all account details
➢ Search by account number
➢ Add balance to cart

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

9.0 Skilled Developed/Learning Outcome of this Micro-Project:

• Develop Java program using Object Oriented methodology .


• Understand inheritance in Java programming
• Implement exception Exception Handling.
• Develop programs using graphics and applet.
• Develop programs for handling I/O and file streams.
• Develop programs using multithreading.
10.0 Application of this Micro-Project:

• Provides computerized Online shopping service.


• It provides comfortable service to a customer.
• It provides user to shop for daily groceries without any efforts easily from their device.

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department


Java Micro Project SY-CO Online Shoppiee

References

1. Herbert Schildt – Java: The Complete Reference

2. Oracle Java Documentation – [Link]

3. TutorialsPoint – Java Programming: [Link]

4. GeeksforGeeks – Java Concepts and Projects

5. Stack Overflow – Developer Community Solutions

6. YouTube – Java GUI Projects and Tutorials

JAMIA INSTITUTE OF TECHNOLOGY Computer Engineering Department

You might also like