Java Micro Project
Java Micro Project
MICROPROJECT REPORT
On
“BILLING IN SUPERMARKET”
Mr. Onkar Shivaji Talekar
Mr. Om Santosh Wakchaure
Mr. Sanket Vijay Sahane
Mr. Pratik Sanjay Shinde
Mr. Sanket Rajendra Daware
Mr. Aryan Rajendra Zinjurde
“BILLING IN SUPERMARKET”
Has been submitted by,
Dr. R. D. Palhade
Principal
ACKNOWLEDGEMENT
INDEX
2. Aim 3
Course Outcomes
3. 3
Addressed
4. Literature Review 3
Actual Methodology
5. 4
Followed
6. Program 5
7. Output 10
8. Applications 11
9. Conclusion 12
10. Reference 13
1
BILLING IN SUPERMARKET
INTRODUCTION
2
BILLING IN SUPERMARKET
❖ Literature Review
We know that lot of supermarkets like D-mart, Big Bazaar,
etc. but there is lot of rush at these supermarket and billing system is
a big issue. Therefore, billing is a lot time consuming process. Also,
theft is an issue in these supermarkets. People may steal chocolates,
chips, etc. and employees working in malls never get an
acknowledgement regarding these issues.
Due to large variety of products these supermarkets need a
large display area to keep their products for sale. But by using our
proposed system, these supermarkets can understand what type of
products are getting sold largely and are in demand and therefore
more stock of these products can be stored in the shop and hence
display area can be managed easily.
When customer enter supermarket, he will choose the product
he wants, After getting the product, bill will be generated
automatically by the Shopper and each time the customer chooses a
new product, the bill automatically gets updated through counterer.
3
BILLING IN SUPERMARKET
4
BILLING IN SUPERMARKET
PROGRAM
• FIRST CLASS
Create package:
package college;
import java.util.*;
public class Product
{
public Product(String
id, String pname, int
qty, double price,
double totalPrice)
{
this.id=id; this.pname
= pname; this.qty =
qty; this.price =
price;
this.totalPrice =
totalPrice;
}
5
BILLING IN SUPERMARKET
{
return qty;
}
public double
getPrice()
{
return price;
}
public double
getTotalPrice()
{
return totalPrice;
}
public static void
displayFormat()
{
System.out.format("-
--------------------------
-----------------
--------------------------
--------------------------
--------------------------
-----
----");
System.out.print("\nP
roduct ID
\t\tName\t\tQuantity\t
\tRate \t\t\t\tTotal
Price\n");
System.out.format("-
--------------------------
-----------------
--------------------------
--------------------------
--------------------------
-----
----\n");
}
6
BILLING IN SUPERMARKET
{
System.out.format("%-9s %-9s %5d
%9.2f %14.2f\n"
,id, pname, qty, price,
totalPrice);
}
}
• SECOND CLASS
import college.*;
import java.util.*;
public class ShoppingBill
{
public static void main(String arg[])
{
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';
System.out.println("\t" +
"-------Welcome to Swami Super Market-------
");
Scanner scan = new Scanner(System.in);
System.out.print("Enter Customer Name: ");
String customername=scan.nextLine();
7
BILLING IN SUPERMARKET
try
{
System.out.print("Quantity: ");
quantity = scan.nextInt();
}
catch(Exception e)
{
System.out.println(e);
}
System.out.print("Price (per unit): ");
price = scan.nextDouble();
choice = scan.next().charAt(0);
scan.nextLine();
}
while (choice == 'y' || choice == 'Y');
Product.displayFormat();
for (Product p : product)
{
p.display();
}
System.out.println("\n\t\t\t\t\t\t\t\t\t\tTotal Amount(Rs.) " +overAllPrice);
8
BILLING IN SUPERMARKET
discount = overAllPrice*2/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\tDiscount (Rs.) "
+discount);
subtotal = overAllPrice-discount;
System.out.println("\n\t\t\t\t\t\t\t\t\t\tSubtotal"+subtotal);
sgst=overAllPrice*12/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\tSGST(%) "+sgst);
cgst=overAllPrice*12/100;
System.out.println("\n\t\t\t\t\t\t\t\t\t\tCGST(%) "+cgst);
}
}
9
BILLING IN SUPERMARKET
OUTPUT
10
BILLING IN SUPERMARKET
11
BILLING IN SUPERMARKET
CONCLUSION
At last, would like to share my experience while doing this micro project.
We learnt many new things about the given topics. The best thing which I can
share is that I developed more interest in this subject. This project gave me real
insight into the billing in super market world.
A very special thanks to my dear Principal for setting such targets for us. I
enjoyed each and every bit work I had put into this project.
12
BILLING IN SUPERMARKET
REFERENCE
• An Efficient Supermarket Billing System: Automating Checkout and
Streamlining Operations | PDF | Software Engineering | Computing
(scribd.com)
• Supermarket Billing system project report | Study Guides, Projects,
Research Computer Programming | Docsity
• Java Project - Supermarket Billing System - Project Gurukul
13