Professional Documents
Culture Documents
Mandal’s
INSTITUTE OF TECHNOLOGY AND
ENGINEERING
Malegaon (Bk.), Tal: Baramati, Dist: Pune, Pin: 413115.
Submitted By
CERTIFICATE
Mr. Santosh Gorakh Jadhav Enrollment No:2100380087
Mr. Viraj Suresh Khandekar. Enrollment No:2100380097
Mr. Dinesh Anil Jagtap Enrollment No:2100380100
We express our deep gratitude toward our guide Prof. Atole J.A. lecturer of
Computer Engineering department for providing us with an opportunity to work with this
project, through her timely advice, constructive criticism and supervision.
By
Chapter 4 Conclusion.........................................................
Introduction
This application used to facilitate mass customer management and room booking
Portal to support Hotel management.
Project consists of following operations:
1.Insert:
In insert operation we can insert the number of record of product as the customer
requirement.
2. Display:
3. Search:
In search operation we can search all record present in the data. Customer can search
the product information by their names.
.
In search operation we can search all record present in the data. Customer can search
the product information by their date and also find the sales per day.
The Try Catch in java statements allows you to define a block of code to be tested for exceptions
(errors) while it is being executed. The Try Catch in Java always occurs in pairs; the catch
statement allows you to define a block of code to be executed, if an error occurs in the try block.
Syntax :
Try
{
//Block of code to monitor for errors
}
Catch(Exception e)
{
//Statements for Exception Handler
}
6. Exception :
7. For Loop:
For Loop is a looping structure that is used to execute a sequence of code until the given
condition returns false. The best condition to use for loop is when the number of iterations is known in
advance.
Syntax :
Software Requirements :
Hardware Requirements :
Processor : Ryzen R5
RAM : 8 GB RAM
SSD : 512 GB
Source Code
import java.io.*;
class Grocery
String productname;
double price;
int quantity;
double amt;
String date;
void indetails()
Try
productname=br.readLine();
price=Double.parseDouble(br.readLine());
quantity=Integer.parseInt(br.readLine());
date=br.readLine();
System.out.println("***********************************");
}
catch(Exception e)
System.out.println(e);
void putdetails()
System.out.println("DATE="+date);
{ int i=0;
int n=0;
int cnt=0;
double b=0;
double act_pro=0;
try{
Int choice;
for(i=0;i<6;i++)
g[i]=new Groceryinfo();
do{
System.out.println("enter your choice 1. add details 2.display 3.search 4.date wise search 5. Exit ");
choice=Integer.parseInt(br.readLine());
switch(choice)
case 1:
n=Integer.parseInt(br.readLine());
for(i=0;i<n;i++)
g[i].indetails();
b=b+(g[i].price*g[i].quantity);
break;
case 2:
for(i=0;i<n;i++)
g[i].putdetails();
break;
case 3:
int flag=0;
String name=br.readLine();
for( i=0;i<n;i++)
if(name.equalsIgnoreCase(g[i].productname))
g[i].putdetails();
flag=1;
if(flag==0)
break;
case 4:
String d1=br.readLine();
for( i=0;i<n;i++)
if(d1.equalsIgnoreCase(g[i].date))
System.out.println("****DETAILS OF PRODUCT****");
for(i=0;i<n;i++)
for(i=0;i<n;i++)
cnt=cnt+g[i].quantity;
flag=1;
}while(choice<5);
System.out.println(e);
}
Output
Conclusion
Grocery Management are developed for the professional handling of the Grocery sales and
buying as well as the management of the whole Grocery. It is very easy and useful
application software that increases the productivity of the business .