DBMS Sample 23-24 Report-2
DBMS Sample 23-24 Report-2
PROJECT GUIDES
Dr. Gururaj T Ph.D., Prof. Arjun H M.Tech.,
Associate Professor Assistant Professor
2023-2024
Bapuji Institute of Engineering and Technology
Department of Computer Science and Engineering
Davanagere-577004
Bapuji Institute of Engineering and Technology
Davanagere – 577004
CERTIFICATE
This is to certify that Prajwal M V and Ratan Shet bearing USN 4BD21CS098 and
4BD21CS116 respectively of Computer Science and Engineering department have satisfactorily
submitted the Mini Project report entitled “Virtual Classroom System” for 5th SEM DBMS
MINI PROJECT (21CSL55). The project report has been approved as it satisfies the academic
requirements for the year 2023-24.
__________________________ ______________________
Dr. Gururaj T Ph.D., Prof. Arjun H M.Tech.,
Associate Professor Assistant Professor
Guide Co-Guide
__________________________
Dr. Nirmala C R Ph.D.,
Head of Department
Signature of Examiners:
We express our sincere thanks to our resourceful guides Dr. Gururaj T, Associate Professor,
Department of Computer Science and Engineering, B.I.E.T., Davanagere, and Prof. Arjun H,
Assistant Professor, Department of Computer Science and Engineering, BI.E.T., Davanagere, who
helped us in every aspect of our project. We are indebted to their discussions about the technical
aspects and suggestions pertaining to our project.
We are grateful to Dr. Nirmala C R, Professor and H.O.D, Department of Computer Science and
Engineering, B.I.E.T., Davanagere, for endeavoring encouragement, facilities, and extended
support.
We also express our whole hearted gratitude to our respected Principal, Dr. H B Aravind for his
moral support and encouragement.
We would like to extend our gratitude to all staff of the Department of Computer Science and
Engineering for the help and support rendered to us. We have benefited a lot from the feedback,
and suggestions given by them.
We would like to extend our gratitude to all our family members and friends especially for their
advice and moral support.
Vision
“To be a centre of excellence recognized nationally internationally, in distinctive areas of
engineering education and research, based on a culture of innovation and invention.”
Mission
“BIET contributes to the growth and development of its students by imparting a broad based
engineering education and empowering them to be successful in their chosen field by inculcating
in them positive approach, leadership qualities and ethical values.”
Mission
1. Adapting best teaching and learning techniques that cultivates Questioning and Reasoning
culture among the students.
2. Creating collaborative learning environment that ignites the critical thinking in students and
leading to the innovation.
3. Establishing Industry Institute relationship to bridge skill gap and make them industry ready
and relevant.
4. Mentoring students to be socially responsible by inculcating ethical and moral values.
PEO1 To apply skills acquired in the discipline of computer science and engineering for
solving Societal and industrial problems with apt technology intervention.
PEO2 To continue their carrier ion industry /academia or pursue higher studies and research.
PEO3 To become successful entrepreneurs, innovators to design and develop software
products and services that meets societal, technical and business challenges.
PEO4 To work in the diversified environment by acquiring leadership qualities with
effective communication skills accompanied by professional and ethical values.
Program Specific Outcomes (PSOs):
PSO1 Analyse and develop solutions for problems that are complex in nature but applying the
knowledge acquired from the core subjects of this program.
PSO2 To develop secure, scalable, resilient and distributed applications for industry and
societal Requirements.
PSO3 To learn and apply the concepts and contract of emerging technologies like artificial
intelligence, machine learning, deep learning, big-data analytics, IOT, cloud computing
etc for any real time problems.
Course Outcomes:
PAGE NO
CHAPTER 1: INTRODUCTION
1.1 Introduction 01
1.5 Objectives 03
CHAPTER 2: SYSTEM REQUIREMENTS AND SPECIFICATION
2.1 Software Requirements 04
2.2 Hardware Requirements 04
CHAPTER 3: DESIGN
3.1 ER Diagram and description 05-06
3.2 Seven steps for ER to Schema conversion 07-09
3.3 Schema Diagram 10
3.4 Database description 11-13
CHAPTER 4: IMPLEMENTATION CODE 14-20
CHAPTER 5: SNAPSHOTS 21-24
CONCLUSION 25
REFERENCES 26
LIST OF FIGURES
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
Database is a collection of related data and data is a collection of facts and figures that
can be processed to produce information. Mostly data represents recordable facts. Data aids in
producing information, which is based on facts. For example, if we have data about marks
obtained by all students, we can then conclude about toppers and average marks.
A database management system (DBMS) is a software package designed to define,
manipulate, retrieve and manage data in a database. A DBMS generally manipulates the data
itself, the data format, field names, record structure and file structure. It also defines rules to
validate and manipulate this data.
A DBMS relieves users of framing programs for data maintenance. Fourth- generation
query languages, such as SQL, are used along with the DBMS package to interact with a
database. Some other DBMS examples include:
MySQL
SQL Server
Oracle
dBASE
FoxPro
JavaServer Pages (JSP), Servlets, and Java Database Connectivity (JDBC) are key
technologies in Java for building dynamic and database-driven web applications.
JavaServer Pages (JSP): JSP is a technology that enables the creation of dynamic,
platform-independent web content. It simplifies the development of web pages by allowing
the embedding of Java code directly into HTML pages. JSP pages are compiled into servlets
behind the scenes, combining the power of Java with the flexibility of HTML. JSP is widely
used for creating dynamic and interactive web applications, providing a clean separation of
business logic and presentation.
Servlets: Servlets are Java classes that extend the functionality of servers to generate dynamic
web content. Servlets handle requests from clients, such as web browsers, and generate responses
dynamically. They are the backbone of Java web applications, allowing developers
2
DBMS Mini project – 21CSL55 2023-24
to create server-side logic. Servlets can communicate with databases, perform authentication,
and manage sessions. Servlets are often used in conjunction with JSP to build robust and
scalable web applications.
Java Database Connectivity (JDBC): JDBC is a Java API that provides a standard interface
for connecting Java applications to relational databases. It allows Java applications to interact
with databases, execute SQL queries, and retrieve or update data. JDBC provides a set of
classes and methods for database connectivity, making it possible to integrate databases
seamlessly into Java applications. It is a crucial component for web applications that need to
store or retrieve data from a database. JDBC ensures that Java applications can communicate
effectively with various relational database management systems (RDBMS).
1.5 OBJECTIVES
3
DBMS Mini project – 21CSL55 2023-24
CHAPTER 2
REQUIREMENT SPECIFICATION
2.1 HARWARE REQUIREMENTS
The basic hardware required for the development of this project is:
• RAM :8 GB RAM
• Database: MySQL
4
DBMS Mini project – 21CSL55 2023-24
CHAPTER 3
DESIGN
3.1 ER DIAGRAM AND DESCRIPTION
5
DBMS Mini project – 21CSL55 2023-24
3.1.1 DESCRIPTION
The ER Model figure shows conceptual view of the database. It works around real-world entities
and the associations among them. At view level, the ER model is considered a good option for
designing databases. So, let’s see each entity
6
DBMS Mini project – 21CSL55 2023-24
7
DBMS Mini project – 21CSL55 2023-24
simple attributes (or simple components of composite attributes) of the 1:1 relationship type R
as attributes of S.
8
DBMS Mini project – 21CSL55 2023-24
9
DBMS Mini project – 21CSL55 2023-24
Users
Courses
Course_id Course_name Instructor_id description enrollment
Enrollments
Enroll_id User_id Course_id Enroll_date
Sessions
Session_id Course_id Start_time End_time Day_of_week Meeting_link
Attendance
Attendance_id Session_id Course_id Attended_status(present,absent)
Discussions
Discuss_id Course_id User_id messag Timestamp
e
11
DBMS Mini project – 21CSL55 2023-24
12
DBMS Mini project – 21CSL55 2023-24
13
DBMS Mini project – 21CSL55 2023-24
CHAPTER 4
IMPLEMENTATION CODE
4.1 CONNECION CODE FOR FRONT END TO BACK END FOR SIGNUP
PAGE
4.1.1 signup.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0"> <title>Sign Up - Virtual Classroom</title>
</head>
<body>
<form action="SignUpServelt" method="post">
<h2>Sign Up</h2>
<label for="userType">User Type:</label> <select
id="userType" name="userType" required>
<option value="student">Student</option>
<option value="teacher">Teacher</option>
</select><br><br>
<label for="newUsername">Username:</label>
<input type="text" id="newUsername" name="newUsername"
required> <label for="newPassword">Password:</label>
<input type="password" id="newPassword" name="newPassword"
required> <label for="department">Department:</label>
<input type="text" id="department" name="department"
required> <label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone"
required> <label for="email">Email:</label>
14
DBMS Mini project – 21CSL55 2023-24
4.1.2 SignUpServlet.java
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/SignUpServlet")
public class SignUpServlet extends HttpServlet
{ private static final long serialVersionUID =
1L;
// JDBC URL, username, and password of MySQL server
private static final String JDBC_URL = "jdbc:mysql://localhost:3306/dbms_project";
private static final String JDBC_USER = "root";
private static final String JDBC_PASSWORD = "root";
// Database table name
private static final String TABLE_NAME = "signup";
protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-
8"); try (PrintWriter out = response.getWriter()) {
/ Register the MySQL JDBC driver Class.forName("com.mysql.cj.jdbc.Driver");
String userType = request.getParameter("userType");
15
DBMS Mini project – 21CSL55 2023-24
preparedStatement.setString(6, email);
int affectedRows = preparedStatement.executeUpdate(); if
(affectedRows > 0) {
out.println("<html><body><h2>Sign Up Successful!</h2><a href='Login
page.jsp'>Go to login page</a></body></html>");
} else {
out.println("<html><body><h2>Error occurred during Sign Up. Please try
again.</h2></body></html>");
}
}
} catch (SQLException e) {
throw new ServletException("Database connection error", e);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
16
DBMS Mini project – 21CSL55 2023-24
17
DBMS Mini project – 21CSL55 2023-24
18
DBMS Mini project – 21CSL55 2023-24
19
DBMS Mini project – 21CSL55 2023-24
20
DBMS Mini project – 21CSL55 2023-24
CHAPTER 5
SNAPSHOTS
21
DBMS Mini project – 21CSL55 2023-24
22
DBMS Mini project – 21CSL55 2023-24
23
DBMS Mini project – 21CSL55 2023-24
24
DBMS Mini project – 21CSL55 2023-24
CONCLUSION
The Virtual Classroom Management System provides an innovative platform for seamless
interaction and learning in a virtual environment. The implemented Virtual Classroom
Management System stands as a testament to the capabilities of Java Servlets, JSP, and JDBC
in creating a robust and interactive virtual learning environment. The successful integration of
these technologies has allowed for efficient class scheduling, user authentication, and
seamless communication between teachers and students. The project lays the foundation for
potential future enhancements and improvements. As technology evolves, there is room for
further features, optimizations, and adaptability to meet the changing dynamics of virtual
education. Future iterations could explore additional functionalities, improved user interfaces,
and enhanced security measures to ensure the system continues to cater to the evolving needs
of virtual classrooms. The Virtual Classroom Management System is not just a project; it's a
stepping stone towards a continuously evolving and innovative virtual education landscape.
25
DBMS Mini project – 21CSL55 2023-24
REFERENCES
th
1. Fundamentals of database systems, Ramez Elmasri and S B Navathe, 7 Edition, 2017,
Pearson
rd
2. Database management systems, Ramakrishnan, and Gehrke, 3 Edition, 2014, McGraw Hill.
3. Coronel, Morris, and Rob, Database Principles Fundamentals of Design, Implementation
and Management, Cengage Learning 2012.
th
4. Silberschatz Korth and Sudharshan, Database System Concepts, 6 Edition, McGraw Hill,
2013.
5. https://www.w3schools.com/
6. https://www.tutorialspoint.com/website_development/index.html
26
DBMS Mini project – 21CSL55 2023-24
27