0% found this document useful (0 votes)
4 views

JAVA MINIPROJECT final

The document is a mini project report for a Hotel Billing System developed using Java by students from the Department of Electrical & Electronics Engineering at B.L.D.E.A’s V. P. Dr. P. G. Halakatti College of Engineering & Technology. It includes the source code for a program that allows users to order food items, calculate the total bill, and process payments. The program features a simple menu and supports multiple orders until the user decides to finalize their payment.

Uploaded by

Pratik Khamitkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

JAVA MINIPROJECT final

The document is a mini project report for a Hotel Billing System developed using Java by students from the Department of Electrical & Electronics Engineering at B.L.D.E.A’s V. P. Dr. P. G. Halakatti College of Engineering & Technology. It includes the source code for a program that allows users to order food items, calculate the total bill, and process payments. The program features a simple menu and supports multiple orders until the user decides to finalize their payment.

Uploaded by

Pratik Khamitkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi, Karnataka–590018

B.L.D.E.A’s
V. P. Dr. P. G. Halakatti College of Engineering & Technology,
Vijayapur, Karnataka – 586103
Academic Year 2023-24

DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING

A Java Mini Project Report on

“HOTEL BILLING SYSTEM USING JAVA”

Submitted by
Name USN No
ADIL KHAN 2BL21EE006
PRATIK KHAMITKAR 2BL22EE407
SIDDARAM RAJPUT 2BL22EE412
Class: VI SEM
Source code
package billingProject;

import java.util.Scanner;

public class main {

public static Scanner input = new Scanner (System.in);

public static int choice ,Quantity=1;

public static String again;

public static double total =0,Pay;

public static void menu() {

System.out.println("---------------------");

System.out.println("\tWELCOME TO OUR RESTAURANT");

System.out.println("\tRestaurant Menu:");

System.out.println("\t1.Burger BDT RS 80.00");

System.out.println("\t2.Pizza BDT RS 100.00");

System.out.println("\t3.Coffee BDT RS 60.00");

System.out.println("\t4.CANCEL");

System.out.println("---------------------");

public static void order() {

System.out.println("1 to burger || 2 to pizza || 3 to coffee");

System.out.println("Press you want to order:");

choice=input.nextInt();

if (choice==1) {

System.out.println("you choice burger");

System.out.println("how many burger you want :");

Quantity = input.nextInt();

total=total+(Quantity*80);

System.out.println("you want buy again :");

System.out.println("press Y FOR [YESS] and N for [No]:");


again=input.next();

if (again.equalsIgnoreCase("Y"))

order();

else {

System.out.println("enter payment :");

Pay=input.nextDouble();

if(Pay<total)

System.out.println("No,Need more");

else {

System.out.println("total="+total);

total=Pay-total;

System.out.println("customer's return"+total+"tk");

else if (choice==2) {

System.out.println("you choice pizza");

System.out.println("how many pizza you want :");

Quantity = input.nextInt();

total=total+(Quantity*100);

System.out.println("you want buy again :");

System.out.println("press Y FOR [YESS] and N for [No]:");

again=input.next();

if (again.equalsIgnoreCase("Y"))

order();

else {

System.out.println("enter payment :");

Pay=input.nextDouble();

if(Pay<total)

System.out.println("no,Need more");
else {

System.out.println("total="+total);

total=Pay-total;

System.out.println("customer's return"+total+"tk");

else if (choice==3) {

System.out.println("you choice coffee");

System.out.println("how many coffee you want to order :");

Quantity = input.nextInt();

total=total+(Quantity*50);

System.out.println("you want buy again :");

System.out.println("press Y FOR [YESS] and N for [No]:");

again=input.next();

if (again.equalsIgnoreCase("Y"))

order();

else {

System.out.println("enter payment :");

Pay=input.nextDouble();

if(Pay<total)

System.out.println("no,Need more");

else {

System.out.println("total="+total);

total=Pay-total;

System.out.println("customer's return"+total+"tk");

else if (choice==4){

System.exit(0);
else {

System.out.println("Choose a Food in this items :");

order();

public static void main (String[] args) {

menu();

order();

}
Output source code
WELCOME TO OUR RESTAURANT
Restaurant Menu:
1.Burger BDT RS 80.00
2.Pizza BDT RS 100.00
3.Coffee BDT RS 60.00
4.CANCEL
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
1 to burger || 2 to pizza || 3 to coffee
Press you want to order:
1
you choice burger
how many burger you want :
1
you want buy again :
press Y FOR [YESS] and N for [No]:
y
1 to burger || 2 to pizza || 3 to coffee
Press you want to order:
2
you choice pizza
how many pizza you want :
1
you want buy again :
press Y FOR [YESS] and N for [No]:
y
1 to burger || 2 to pizza || 3 to coffee
Press you want to order:
3
you choice coffee
how many coffee you want to order :
2
you want buy again :
press Y FOR [YESS] and N for [No]:
n
enter payment :
300
total=280.0
customer's return20.0

You might also like