DEPARTMENT OF COMPUTER SCIENCE AND
ENGINEERING
Academic Year
2022 – 2023 (Odd Semester)
MINI PROJECT REPORT
U19CS202 Database Management
Systems &
U19CS203 Object-Oriented Programming
------ FISHERIES RESOURCE MAINTENANCE
SYSTEM -----
Submitted by, Mentored by,
[21CS151] SUBASH E
[21CS154] SURENDHAR M Ms. SUCHITRA B
VISHWA M
[21CS184] Assistant
[21CS185] YASWANTH R Professor,
Department of
CSE
1
TABLE OF CONTENTS
CHAPTE PAGE NO.
R TITLE
NO.
ABSTRACT 3
1 INTRODUCTION
1.1 OBJECTIVES 4
1.2 SCOPE OF THE PROJECT 5
SYSTEM ANALYSIS
2
AND SPECIFICATION
6
2.1 PROBLEM DESCRIPTION
7
2.2 FRONT END
7
2.3 BACK-END
3 SYSTEM DESIGN
ER DIAGRAM 8
3.1
SCHEMA DIAGRAM 9
3.2
4 PROPOSED SOLUTION
4.1 USER INTERFACE DESIGN 10
4.2 CLASS CONSTRUCTION 11
4.3 DATABASE CREATION 12
5 PROJECT DESCRIPTION
5.1 MODULE DESCRIPTION
1) CUSTOMER SYSTEM 13
2) FISHERIES SYSTEM
3) PACKAGE INFORMATION
SYSTEM
5.2 JDBC CONNECTIVITY 14
6 IMPLEMENTATION 15
7 RESULTS AND DISCUSSION 25
8 CONCLUSION & FUTURE 26
ENHANCEMENT
REFERENCES 27
2
ABSTRACT
The project “Fisheries Resource Maintenance System” is used to give the user
the information about the fishes so that the users can easily make their choice to
buy a fish. The project is designed in Java as front end and MySql as backend.
The coding language used is Java and Sql. The “Fisheries Resource
Maintenance System” is used to show the details about the fish like its
foodroutine, production and adaptation details. The admin can add,edit and
remove the details about the fish. Then the users can sign in and check the
details about the fish. It is an easiest platform for all the users knowing all the
details about the fishes.
3
CHAPTER 1
INTRODUCTION
1.1 OBJECTIVES
● Fisheries is one of the main sector which contributes in
economic growth. Countries near the water resources will
have this sector as their main.
● In India fisheries system contributes about 1% to India’s
GDP and over 5% to agricultural GDP.
● We help the user to buy a fish by providing all the details
about the fish.
● To provide the necessary information about the fish for the
customer to buy a fish of his desire.
4
1.2 SCOPE OF THE PROJECT
Many of the people may not know how to buy a fish and by giving the
details it can be useful to them to buy their desired fish easily.
For instance, Our project can give the user the necessary details about the
fish they desire to buy so that they can easily make the choice.
The main scope of the project is to create a database about the fishes and the
user can see the data of the fishes and it seems to be easy for both the
customer and the employee who work in the fisheries sector.
5
CHAPTER 2
SYSTEM ANALYSIS AND SPECIFICATION
2.1 PROBLEM DESCRIPTION
Fisheries Resource Management System is an integrated software
developed for fisheries business.
The purpose is to build a system that performs all operations and give
information related to basic fishdetails, foodroutine, adaptation and
production management.
This system gives the necessary information about the fish for the
customers so that they can easily choose their desired fish.
6
2.2 FRONT END
Processor Type : AMD RYZEN 5
Speed : 2.4GHZ
RAM : 8GB DD4 RAM
Hard disk : 512 GB
2.3 BACK END
MySQL Libraries
MySQL Workbench
Visual Studio Code
Operating system : Windows11
7
CHAPTER 3
SYSTEM DESIGN
3.1 ER DIAGRAM
8
3.2 SCHEMA DIAGRAM
Fishdetails (fishid,cost,colour,gender,fishname)
Foodroutine (fishid,nooftimestofeed,food,quantity,cost)
Production (fishid,cost,breeding,diseasecontrol)
Adaptation (fishid,climate,habitat,waterquality,survivalability)
9
CHAPTER 4
PROPOSED SOLUTION
4.1 USER INTERFACE DESIGN
Admin:
Admin has the power to
● To add details of fish.
● To remove details of fish.
USER:
User can view the details about
● The fish’s basic details.
● The fish’s food routine.
● The fish’s production.
● The fish’s adaptation.
10
4.2 CLASS CONSTRUCTION
Class FishDetails
● It has the entity and attribute for the entity.
Class BussinessOperation
● It performs the operation on the databases.
Class sqlConnection
● It establishes the connection with mysql.
Class App
● Controls all the operation.
11
4.3 DATABASE CREATION
12
CHAPTER 5
PROJECT DESCRIPTION
5.1 MODULE DESCRIPTION
Modules to be used are
1. Customer System:
This keeps track of all the new customers and old customers as
per their regular needs and generates timely report of it whose one copy is
being sent to the customer and another copy is kept into the company’s
database for future reference.
2. Fisheries System:
In this module, all the fish customers information associated with
the company is kept and next time it gives the related to the customer’s
database.
3. Package Information System:
In this module, all the information like the basic fish details, fish
production management, fish adaptation, fish food routine are kept .
13
5.2 JDBC CONNECTIVITY
import [Link].*;
public class sqlConnection{
public static Connection getConnection()
{ Connection con = null;
try{
con =
[Link]("jdbc:mysql://localhost/college","root",
"mysql");
}catch(SQLException e)
{ [Link]("Error");
}
return con;
}
}
● JDBC is a Java API to connect and execute the query with the
database.
● It is a part of JavaSE (Java Standard Edition).
● JDBC API uses JDBC drivers to connect with the database
14
CHAPTER 6
IMPLEMENTATION
[Link]:
public class FishDetails
{ private int fishid;
private double cost;
private String colour,gender,fishname;
public int getFishid() {
return fishid;
public void setFishid(int fishid) {
[Link] = fishid;
}
public double getCost() {
return cost;
}
public void setCost(double cost) {
[Link] = cost;
}
public String getColour() {
return colour;}
public void setColour(String colour) {
[Link] = colour;
public String getGender() {
return gender;
}
public void setGender(String gender) {
[Link] = gender;
}
public String getFishname() {
15
return fishname;
}
public void setFishname(String fishname) {
[Link] = fishname;
}
class FoodRoutine
private int fishid,nooftimestofeed;
private String food;
private double quantity,cost;
public int getFishid() {
return fishid;
}
public void setFishid(int fishid) { [Link] = fishid;
}
public int getNooftimestofeed() {
return nooftimestofeed;
}
public void setNooftimestofeed(int nooftimestofeed) {
[Link] = nooftimestofeed;
}
public String getFood() {
return food;
}
public void setFood(String food) {
[Link] = food;
}
public double getQuantity() {
return quantity;
}
public void setQuantity(double quantity) {
[Link] = quantity;
16
}
public double getCost() {
return cost;
}
public void setCost(double cost) {
[Link] = cost;
}
class Production
private int fishid;
private double cost;
private String breeding,diseasecontrol;
public int getFishid() {
return fishid;
public void setFishid(int fishid) {
[Link] = fishid;
}
public double getCost() {
return cost;
}
public void setCost(double cost) {
[Link] = cost;
}
public String getBreeding() {
return breeding;
public void setBreeding(String breeding) {
[Link] = breeding;
}
17
public String getDiseasecontrol() {
return diseasecontrol;
}
public void setDiseasecontrol(String diseasecontrol) {
[Link] = diseasecontrol;
}
class Adaptation
private int fishid;
private String climate,habitat,waterquality,survivalability;
public int getFishid() {
return fishid;
public void setFishid(int fishid) {
[Link] = fishid;
}
public String getClimate() { return climate;
}
public void setClimate(String climate) {
[Link] = climate;
}
public String getHabitat() {
return habitat;
}
public void setHabitat(String habitat) {
[Link] = habitat;
}
public String getWaterquality() {
return waterquality;
}
18
public void setWaterquality(String waterquality) {
[Link] = waterquality;
}
public String getSurvivalability() {
return survivalability;
}
public void setSurvivalability(String survivalability) {
[Link] = survivalability;
}
[Link]:
import [Link].*;
import [Link];
import [Link];
public class BussinessOperation {
public static int getFishdetails (Connection con)throws
SQLException{ con = [Link]();
Statement smt = [Link]();
ResultSet rs = [Link]("select * from
FishDetails"); ArrayList<FishDetails> arr = new
ArrayList<FishDetails>(); while([Link]()){
FishDetails f = new FishDetails();
[Link]([Link]("fishname"));
[Link]([Link]("fishid"));
[Link]([Link]("colour"));;
[Link]([Link]("gender"));
[Link]([Link]("cost"));
[Link](f);
int fishid;
[Link]("fishId Fishname Cost Colour Gender"); for(FishDetails f:arr){
[Link]([Link]()+" "+[Link]()+" "+[Link]()+"
"+[Link]()+" "+[Link]());
19
}
Scanner sc = new Scanner([Link]);
[Link]("Enter the fishId");
fishid = [Link]();
return fishid;
public static void getFoodRoutine(Connection con ,int fishId) throws
SQLException{
con = [Link]();
Statement smt =
[Link]();
ResultSet rs = [Link]("select * from FoodRoutine
where fishid ="+fishId);
ArrayList<FoodRoutine> arr = new ArrayList<FoodRoutine>();
while([Link]()){
FoodRoutine f = new FoodRoutine();
[Link](fishId);
[Link]([Link]("food"));
[Link]([Link]("nooftimestofeed"));
[Link]([Link]("quantity"));
[Link]([Link]("cost"));
[Link](f);
[Link]("fishId no_of_times_to_feed food quantity
cost");
for(FoodRoutine f :arr){
[Link]([Link]()+" "+[Link]()+"
"+[Link]()+" "+[Link]()+" "+[Link]());
}
public static void getProduction(Connection con, int fishId) throws
SQLException{
con = [Link]();
20
Statement smt =
[Link]();
ResultSet rs = [Link]("select * from Production where fishid
="+fishId);
ArrayList <Production> arr= new ArrayList<Production>();
while([Link]()){
Production p = new Production();
[Link](fishId);
[Link]([Link]("cost"));
[Link]([Link]("breeding"));
[Link]([Link]("diseasecontrol"))
[Link](p);
[Link]("fishId breeding Diseasecontrol cost");
for(Production p : arr){
[Link]([Link]()+" "+[Link]()+"
"+[Link]()+" "+[Link]());
}
public static void getAdaptation(Connection con,int fishId) throws
SQLException{
con = [Link]();
Statement smt =
[Link]();
ResultSet rs = [Link]("select * from Adaptation where fishid
="+fishId);
ArrayList <Adaptation> arr = new ArrayList<Adaptation>();
while([Link]())
{
Adaptation a=new Adaptation();
[Link](fishId);
[Link]([Link]("climate"));
[Link]([Link]("habitat"));
[Link]([Link]("survivalability"))
; [Link]([Link]("waterquality"));
[Link](a);
21
}
[Link]("fishId climate habitat survivalability
waterquality");
for( Adaptation a : arr)
[Link]([Link]()+" "+[Link]()+"
"+[Link]()+" "+[Link]()+" "+[Link]());
}
[Link]:
import [Link].*;
public class sqlConnection{
public static Connection getConnection()
{ Connection con = null;
try{
con =
[Link]("jdbc:mysql://localhost/college","root",
"mysql");
}catch(SQLException e)
{ [Link]("Error
");
}
return con;
22
}
[Link]:
import [Link].*;
import
[Link];
public class App {
public static void main(String[] args) throws Exception
{ Connection con = [Link]();
int fishid = [Link](con);
Scanner sc = new Scanner([Link]);
int ch;
do{
[Link]("Enter the choice\n1)FoodRoutine\
n2)Production\n3)Adaptation\n4)Change the fish\n5)Exit");
ch =[Link]();
switch (ch) {
case 1:
[Link](con, fishid); break;
case 2:
[Link](con, fishid);
break;
case 3:
[Link](con, fishid);
break;
case 4:
fishid = [Link](con);
break;
23
}
[Link](5000);
}while(ch !=5);
24
CHAPTER 7
RESULTS AND DISCUSSIONS
25
CHAPTER 8
CONCLUSION AND FUTURE ENHANCEMENT
Thus the fisheries resource maintenance system with
personalized data management of the customers is developed. In
addition to this project we can also add a login page which asks the
customer to enter username and password to see the details of fish.
27
REFERENCES
[1] [Link]
[2] [Link]
beginners-120
[3] [Link]
[4] [Link]
assistant-using-python-f57247b4494b?gi=847571c7aacd
[5] [Link]
27