0% found this document useful (0 votes)
5K views

Java Micro-Project

This micro project report describes an online shopping application called Online Shoppiee developed by students as part of their Java programming course. The aims of the project were to learn object-oriented programming concepts in Java and develop a program for online shopping. Key outputs of the project include the program code for the online shopping application and a demonstration of its functionality. The report provides details on the methodology, resources used, and outcomes achieved through this student project.

Uploaded by

Saloni Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5K views

Java Micro-Project

This micro project report describes an online shopping application called Online Shoppiee developed by students as part of their Java programming course. The aims of the project were to learn object-oriented programming concepts in Java and develop a program for online shopping. Key outputs of the project include the program code for the online shopping application and a demonstration of its functionality. The report provides details on the methodology, resources used, and outcomes achieved through this student project.

Uploaded by

Saloni Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

A

Micro Project Report


On

Online Shopiee

Submitted by
Patil Saloni Nivrutti
Chopadkar Tanishka Kiran
Rahane Divya Dattatray

Under the Guidance of


Prof.R.C Mahajan

In the Partial Fulfilment of Fourth Semester of Diploma in


Computer Engineering

Department of Computer Engineering


Sandip Polytechnic
Mahiravani, Nashik - 422213

Affiliated to

Maharashtra State
Board of Technical Education

Academic Year 2022-23


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Saloni Nivrutti Patil with Roll No-5 has successfully completed Micro-project in
course Java Programming.(22412)for the academic year 2022-23 as prescribed in the 'Assessment Manual'during
her tenure of completing Fourth Semester of Diploma Programme inComputer Engineering from institute,
Sandip Polytechnic with institute code 1167.

Place:Nashik Enrollment No:2111670129

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Chopadkar Tanishka Kiran with Roll No-14 has successfully completed Micro-
project in course Java Programming.(22412)for the academic year 2022-23 as prescribed in the 'Assessment
Manual'during her tenure of completing Fourth Semester of Diploma Programme in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place:Nashik Enrollment No:2111670139

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Rahane Divya Dattaray with Roll No-62 has successfully completed Micro-project in
course Java Programming.(22412)for the academic year 2022-23 as prescribed in the 'Assessment Manual'during
her tenure of completing Fourth Semester of Diploma Programme inComputer Engineering from institute,
Sandip Polytechnic with institute code 1167.

Place:Nashik Enrollment No:2111670191

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Annexure – I

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 1. Patil Saloni Nivrutti


2. Chopadkar Tanishka
4 Resources Required Kiran
3. Rahane Divya Rahane
5 Analysis of Collected Data

6 Design of System

7 Coding& Testing of Modules


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 - - -

Name of Team Members with Roll No:

Roll No Name of Team Members

5 Patil Saloni Nivrutti


14 Chopadkar Tanishka Kiran

62 Rahane Divya Dattatray

Prof.R.C Mahajan
Name & Signature of Course Teacher
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
Tanishka , Divya and Saloni.
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 Divya and
Saloni.
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 java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class ShopDetails {
private String accno;
private String name;
private long balance;
Scanner sc = new Scanner(System.in);

String id = null;
String productName = null;
int quantity = 0;
double price = 0.0;
double totalPrice = 0.0;
double overAllPrice = 0.0;
double cgst, sgst, subtotal=0.0, discount=0.0;
char choice = '\0';

ShopDetails(){

ShopDetails(String id, String pname, int qty, double price, double totalPrice)
{
this.id=id;
this.productName = pname;
this.quantity = qty;
this.price = price;
this.totalPrice = totalPrice;
}

//method to open new account

public void openAccount() {


System.out.print("Enter Account No: ");
accno = sc.next();
System.out.print("Enter Name: ");
name = sc.next();
System.out.print("Enter Card Balance: ");
balance = sc.nextLong();
System.out.println(" -");
}
public void showAccount() {
System.out.println("Name of account holder: " + name);
System.out.println("Account no.: " + accno);
System.out.println("Balance: " + balance);
System.out.println(" -");
}

//To add balance to shoppie card


public void deposit() {
long amt;
System.out.println("Enter the amount you want to deposit: ");
amt = sc.nextLong();
balance = balance + amt;
}
//displayFormat
public static void displayFormat()
{
System.out.format(" -
");
System.out.print("\nProduct ID \t\tName\t\tQuantity\t\tRate \t\t\t\tTotal
Price\n");
System.out.format(" -
\n");
}

// display
public void display()
{
System.out.format(" %-9s %-9s %5d %9.2f
%14.2f\n" ,id, productName, quantity, price, totalPrice);
}

public void shopping(){

List<ShopDetails> product = new ArrayList<ShopDetails>();


do
{
// read input values
System.out.println("Enter the product details: ");
System.out.print("Product ID: ");
id = sc.nextLine();

System.out.print("Product Name: ");


productName = sc.nextLine();

System.out.print("Quantity: ");
quantity = sc.nextInt();

System.out.print("Price (per unit): ");


price = sc.nextDouble();
//calculate total price for a particular product

totalPrice = price * quantity;


//calculates overall price

overAllPrice = overAllPrice + totalPrice;


//creates Product class object and add it to the List

product.add( new ShopDetails(id, productName, quantity, price,


totalPrice) );
// ask for continue shopping?

System.out.print("Want to add more items? (y or n): ");


//reads a character Y or N

choice = sc.next().charAt(0);
//read remaining characters, don't store (no use)
sc.nextLine();
}
while (choice == 'y' || choice == 'Y');
//display all product with its properties
ShopDetails.displayFormat();
for (ShopDetails p : product)
{
p.display();
}
//price calculation
System.out.println("\n\t\t\t\t\t\t\t\t\t\tTotal Amount (Rs.) " +overAllPrice);
//calculating discount

discount = overAllPrice*2/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t Discount (Rs.) " +discount);
//total amount after discount

subtotal = overAllPrice-discount;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t Subtotal "+subtotal);

//calculating tax
sgst=overAllPrice*12/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t SGST (%) "+sgst);
cgst=overAllPrice*12/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t CGST (%) "+cgst);

//calculating amount to be paid by buyer


System.out.println("\n\t\t\t\t\t\t\t\t\t\t Invoice Total " +(subtotal+cgst+sgst));
System.out.println("\t\t\t\t----------------Thank You for Shopping!!--------------
---");
System.out.println("\t\t\t\t Visit Again");
// close Scanner
//sc.close();

public boolean search(String ac_no) {


if (accno.equals(ac_no)) {
showAccount();
return (true);
}
return (false);
}
}

public class Shop{


public static void main(String arg[]) {
Scanner sc = new Scanner(System.in);

//create initial accounts


System.out.print("How many number of customers do you want to input? ");
int n = sc.nextInt();
ShopDetails C[] = new ShopDetails[n];
for (int i = 0; i < C.length; i++) {
C[i] = new ShopDetails();
C[i].openAccount();
}

System.out.println("\t\t\t\t--------------------Invoice ---------------- ");


System.out.println("\t\t\t\t\t "+" "+"Metro Mart Grocery Shop");
System.out.println("\t\t\t\t\t3/98 Mecrobertganj New Nashik");
System.out.println("\t\t\t\t\t" +" " +"Opposite Metro Walk");
System.out.println("GSTIN: 03AWBPP8756K592"+"\t\t\t\t\t\t\tContact: (+91)
9988776655\n");

// loop runs until number 5 is not pressed to exit


int ch;
do {
System.out.println(" -
");
System.out.println(" 1. Display all account details \n 2. Search by Account
number\n 3. Add Balance to card \n 4. Shop Groceries \n 5.Exit ");
System.out.println("Enter your choice: ");
ch = sc.nextInt();
switch (ch) {
case 1:
for (int i = 0; i < C.length; i++) {
C[i].showAccount();
}
break;
case 2:
System.out.print("Enter account no. you want to search: ");
String ac_no = sc.next();
boolean found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
break;
}
}
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
}
break;
case 3:
System.out.print("Enter Account no. : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
C[i].deposit();
break;
}
}
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
}
break;
case 4:
System.out.print("Enter Account No : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
System.out.print("Enter your Shopping List:");
C[i].shopping();
break;
}
}
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
}
break;
case 5:
System.out.println("See you soon...");
break;
}
}
while (ch != 5);
}
}
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
• 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 entering the 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..!! “
• 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.
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”.
• Choice5 is EXIT , when user select this choice the program will stop running and get the
user out of the application.
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 sub-packages.Package
in java can be categorized in two form, built-in package and user-defined package.There
are many built-in packages such as java, lang, awt, javax, swing, net, io, util, sql etc.Here,
we will have the detailed learning of creating and using user-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 API.Some of
the commonly used built-in packages are:

1) java.lang: Contains language support classes(e.g classed which defines primitive data
types, math operations). This package is automatically imported.
2) java.io: Contains classed for supporting input / output operations.

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

5) java.awt: Contain classes for implementing the components for graphical user interfaces (like
button , ;menus etc).
6) java.net: 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 java.util package. Java provides various ways to read input
from the keyboard, the java.util.Scanner class is one of them.
The Java Scanner class breaks the input into tokens using a delimiter which is whitespace by
default. It provides many methods 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 of calling 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 java.util package and inherits the Collection interface. It is
a factory of ListIterator interface. Through the ListIterator, we can iterate the list in forward
and backward directions
• 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 the number 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 after loop 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, and Long. 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
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.

Prof.R.C Mahajan
Name & Signature of CourseTeacher
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Patil Saloni Nivrutti Enrollment No:2111670129
Name of Programme: Computer Engineering Semester: IV
Course Title: Java Programming Course Code: 22412
Title of Micro Project: Online Shopiee

Learning Outcomes Achieved:


➢ Develop Java program using Object Oriented methodology .
➢ Implement exception Exception Handling.
➢ Develop programs using graphics and applet.
➢ Develop programs for handling I/O and file streams.
➢ Develop programs using multithreading.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Targetas per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication(if any)


…………………………………..……………………………………………………………………………

Name &Designation of Course Teacher: Prof.R.C Mahajan


Dated Signature:
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Chopadkar Tanishka Kiran Enrollment No: 2111670139
Name of Programme: Computer Engineering Semester: IV
Course Title: Java Programming Course Code: 22412
Title of Micro Project: Online Shopiee

Learning Outcomes Achieved:


➢ Develop Java program using Object Oriented methodology .
➢ Implement exception Exception Handling.
➢ Develop programs using graphics and applet.
➢ Develop programs for handling I/O and file streams.
➢ Develop programs using multithreading.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication(if any)


…………………………………..……………………………………………………………………………

Name & Designation of Course Teacher: Prof.R.C Mahajan

Dated Signature:
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Rahane Divya Dattatray Enrollment No: 2111670191
Name of Programme: Computer Engineering Semester: IV
Course Title:Java Programming. Course Code: 22412
Title of Micro Project: Online Shopiee

Learning Outcomes Achieved:


➢ Develop Java program using Object Oriented methodology .
➢ Implement exception Exception Handling.
➢ Develop programs using graphics and applet.
➢ Develop programs for handling I/O and file streams.
➢ Develop programs using multithreading.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication(if any)


…………………………………..……………………………………………………………………………

Name & Designation of Course Teacher: Prof. R.C Mahajan

Dated Signature:

You might also like