You are on page 1of 12

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

PILLAI HOC COLLEGE OF ENGINEERING &


TECHNOLOGY, RASAYANI
DIPLOMA SECTION: 1148
MICRO PROJECT
ACADEMIC YEAR: (2023-24)

TITLE OF PROJECT

Food Delivery Application


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

Program: Computer Engineering


Program Code: CO4I
Course: Java Programming
Course Code: 22412
Name of the Guide: Sagar Mhatre
MAHARASHTRA STATE
BOARD OF TECHNICAL
EDUCATION
Certificate
This is to certify that Mr. Piyush Bharat Patil. Roll No. : 61 of 4th Semester of Diploma in
Computer engineering of Institute Pillai HOC college of engineering and technology (Code:
1148) marks has completed the termwork satisfactorily in Subject – Java Programming (22412)
for the academic year 2023- 2024 as Prescribed in curriculum.

Place: Rasayani Enrollment No:23112270179


Date: ………… Exam. Seat No:145120

Subject Teacher Head of Department Principal


MAHARASHTRA STATE
BOARD OF TECHNICAL
EDUCATION

Certificate
This is to certify that Mr.Sujal Mahadev Dhadve . Roll No. : 58 of 4th Semester of Diploma in
Computer engineering of Institute Pillai HOC college of engineering and technology (Code:
1148) marks has completed the term work satisfactorily in Subject -Java
Programming(22412) for the academic year 2023 To 2024 as Prescribed in curriculum.

Place: Rasayani Enrollment No:23112270176


Date: ………… Exam. Seat No:145117

Subject Teacher Head of Department Principal


Group Members

Sr.No. Names of Group Roll Enrollment Seat No.


Member No. No.

1 Piyush Bharat Patil 61 23112270179 145120

2 Sujal Mahadev Dhadve 58 23112270176 145117

3
WEEKLY PROGRESS
REPORT MICRO
PROJECT

SR.NO. WEEK ACTIVITY DATE OF SIGN OF THE


OBSERVATION GUIDE

Formation of group & Allocation of 6/01/2024


1. 1st
Project Topic

2. 2nd Ideas about how to do projects 13/01/24

3. 3rd Discussion of Micro Project. 20/01/24

4. 4th Creation of Customer class 27/01/24

5. 5th Creation of Food class 04/02/24

6. 6th Creation of function accept() 10/02/24

7. 7th display(), hotel() 17/02/24

pay(), delivery() 17/02/24


8. 8th
9. 9th Calculation of Food item 24/02/24

10. 10th Creation of main function() 02/03/24

11. 11th Packages 09/03/24

12. 12th Exception Handling 16/03/24

13. 13th File Handling 23/03/24

14. 14th Preparation of Report 30/03/24

15. 15th Submission of Project 06/04/24

16. 16th Presentation Viva & Checking 06/04/24

Signature of the Guide


ANNEXURE II
Evaluation Sheet for the Micro
Project Academic Year: 2023-2024
Name of the Faculty: Sagar
Mhatre Course :Java
Programming Course Code:
22412
Semester: 4th
Title of the Project: Food Delivery Application
Cos addressed by Micro Project :
a. Develop programs using object oriented methodology in Java.
b. Apply Concepts for Code reusability.
d. Implement exception handling.
f. Programs for handling IO and file streams.

Major learning outcomes achieved by students by doing the project: Hence, we developed Food delivery
Application
Practical Outcome: 1,4,20,23,25,26,31,32.
Unit outcomes in Cognitive domain: Hence, we created the Food delivery Application using Switch case, If- Else
statements, Exception Handling , Packages, File Handling, etc.
Outcomes in Affective domain: Hence, we understand the concepts of File Handling, Exception Handling, Switch
Cases and if else Statements for development of project.

Comments/suggestions about teamwork /leadership/interpersonal communication (if any):

Marks out of 6 Marks out of 4 Total out


for performance for performance of 10
Roll No. Student Name in group activity in oral/
presentation
(D5 Col.8)
(D5 Col.9)
61 Piyush Patil
58 Sujal Dhadve

(Signature of Faculty)
Introduction :

A Food Deliver Application is a software solution designed to order online food from any restaurant at
anytime and anywhere . Food delivery app for delicious meals delivered straight to your doorstep. It typically
includes Ordering convenience , restaurant selection , customization , delivery options , payment methods ,
promotions This application aim to provide a seamless and enjoyable experience for usera to enjoy restaurant-
quality meals from the comfort of thrie home or office and it enables the schedule deliveries , advanced
payment methods , restaurant management portal real-time order tracking , delivery options .
sure , lets break down the functions used in the provided code :

1. accept () :

 This function responsible for accepting user input , particularly the customer name , password .
 It prompts the user to enter the valid otp which is send by the application .

2. display () :

 This function is display the information which is enter by the user like customer name ,
password and otp .

3. hotel() :

 This function is accepting the hotel name and this function provides the selection cases for
food which is avialble at that restaurant .
 It prompts the user to enter the choice of their food and it provides the information about menu
which is aviable at the restaurant and user have to enter correct choice about their food
otherwise it will print message Invalid choice .

4. pay() :

 This function provides the information about the payment method (Cash On Deliver , Credit
Card or Debit Card , Paypal , Click to pay ) like this option provide by this application which
is helpful to user to enter their choice about payment method .
 It prompts the user to enter their correct choice about their payment method and if user
enter incorrect choice then it will print message Invalid Choice.

5. delivery():

 In this function user have to enter their current address for the delivery or where they want
to send their delivery.
 This function provides the information about the food order , food order id and who is
your delivery partner .
Source file

package mj;
importjava.util.*;
import java.io.*;
public class Custom
{
int
pass;
int otp;
String name;
public void
accept()
{
Scanner s = new Scanner(System.in);
System.out.println("*** Customer Information ***");
System.out.println("Enter your name = ");
name = s.next();
System.out.println("Enter your password =
"); pass = s.nextInt();
System.out.println("Enter the OTP send on your device =
"); otp = s.nextInt();
try
{
RandomAccessFile f1 = new
RandomAccessFile("record.txt","rw"); f1.writeUTF(name);
f1.writeInt(pass)
;
f1.writeInt(otp);
f1.close();
}
catch (IOException e)
{
//System.out.println("Error");
}
}

public void display()


{
try
{
RandomAccessFile f2 = new RandomAccessFile("record.txt","r");
int p = f2.readInt();
String n = f2.readUTF();
int o = f2.readInt();
System.out.println("Name: " + n);
System.out.println("Password: " +
p); System.out.println("OTP:"+o);
f2.close();

}
catch (IOException e)
{
//System.out.println("Invalid OTP");
}
}
}

Main file:

import mj.*;
importjava.util.Scanner
; public class Food
{
String hot,adf;
int
choice,choice1
; void hotel()
{
Scanner s = new Scanner(System.in);
System.out.println("*** Hotel Information ***");
System.out.println("Enter Hotel name:");
hot = s.next();
System.out.println("1. Cookies And Cream
Toasties"); System.out.println("2. Belgian Chocolate
Tub"); System.out.println("3. Rocky Road Tub");
System.out.println("4. Black Forest Tubsters");
System.out.println("Enter Choice:");
choice = s.nextInt(); switch (choice)
{
case 1:
System.out.println("Cookies And Cream Toasties"); break;
case 2:
System.out.println("Belgian Chocolate Tub"); break;
case 3:
System.out.println("Rocky Road Tub");
break; case 4:
System.out.println("Black Forest Tubsters"); break;
default:
System.out.println("Invalid choice"); break;
}
}
void pay()
{
Scanner s = new Scanner(System.in);
System.out.println("1. Cash On Delivery");
System.out.println("2. Credit Card Or Debit card");
System.out.println("3. Paypal");
System.out.println("4. Click to Pay");
System.out.println("Enter Payment
Method:"); choice1 = s.nextInt();
switch (choice)
{
case 1:
System.out.println("Cash On Delivery");
System.out.println("You have to pay:
$155"); break;
case 2:
System.out.println("Credit Card Or Debit Card");
System.out.println("You have to pay: $150");
break;
case 3: System.out.println("Paypal");
System.out.println("You have to pay:
$140"); break;
case 4:
System.out.println("Click to Pay");
System.out.println("You have to pay:
$145"); break;
default:
System.out.println("Invalidchoice");
break;
}
void delivery()
{
System.out.println("Add your current Address:");
adf =s.next();
System.out.println("Congratulations your order is confirmed!");
System.out.println("Order Id :345562816");
System.out.println("Mukesh is your delivery partner.");
s.close();
}

}
public static void main(String args[])
{
Custom d = new Custom
(); d.accept();
d.display();
Food k = new Food();
k.hotel();
k.pay();
k.delivery();
}
}

You might also like