JAVA MINIPROJECT final
JAVA MINIPROJECT final
B.L.D.E.A’s
V. P. Dr. P. G. Halakatti College of Engineering & Technology,
Vijayapur, Karnataka – 586103
Academic Year 2023-24
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;
System.out.println("---------------------");
System.out.println("\tRestaurant Menu:");
System.out.println("\t4.CANCEL");
System.out.println("---------------------");
choice=input.nextInt();
if (choice==1) {
Quantity = input.nextInt();
total=total+(Quantity*80);
if (again.equalsIgnoreCase("Y"))
order();
else {
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) {
Quantity = input.nextInt();
total=total+(Quantity*100);
again=input.next();
if (again.equalsIgnoreCase("Y"))
order();
else {
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) {
Quantity = input.nextInt();
total=total+(Quantity*50);
again=input.next();
if (again.equalsIgnoreCase("Y"))
order();
else {
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 {
order();
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