0% found this document useful (0 votes)
21 views16 pages

Proposal 2

Uploaded by

Charles Oxford
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views16 pages

Proposal 2

Uploaded by

Charles Oxford
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Republic of the Philippines

BATANGAS STATE UNIVERSITY


The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

CS 211- Object-Oriented Programing


IT 211- Database Management System

Prepared by:

Castillo, Earn Eliazar M.

Marasigan, LJ N.

Pelicano, Jhonna C.

Prepared to:

Mrs. Jasmine G. Geronaga

Instructor

September 17, 2024

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

In today’s fast-paced environment, food businesses must cater to customers’

growing demand for quick and hassle-free service. Efficient order management is

essential for enhancing customer satisfaction and streamlining operations. To

address this need, a Java-based ordering system has been developed, offering

customers a seamless platform to browse products, place orders, and receive order

summaries efficiently. The system showcases practical applications of object-

oriented programming (OOP) concepts and basic command prompt design. By

automating the order management process, it reduces manual errors, enhances

productivity, and ensures a smooth customer experience. This project emphasizes

the importance of technology-driven solutions in meeting modern consumer

expectations while improving business operations.

The commercial sector is facing a significant challenge in the form of stock-

outs, which can lead to lost customers and revenue. According to Michailidis

(2022), technology plays a crucial role in addressing this issue, particularly the use

of wireless technology and mobile apps. Mobile apps like "Smart Order,"

developed by Razak et al. (2019), enhance the dining experience by simplifying

ordering and providing calorie monitoring, helping cafes address current issues like

long lines and provide healthier options for patrons. Lau et al. (2022) created this

app during the COVID-19 pandemic, highlighting the need for businesses to adapt

to new operating procedures and improve performance during this challenging

time.

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

This study focuses on the need for a reliable and efficient ordering system for

small to medium-sized food businesses to enhance service and reduce errors.

Manual processes often result in delays, inaccurate order handling, and difficulties

in record-keeping, which adversely affect customer satisfaction and operational

efficiency. To address these issues, the study aims to develop a command-line-

based ordering system using Java to automate ordering processes, ensuring faster

transactions, greater accuracy, and improved record-keeping.

The goal of this system is to offer an easy-to-use solution that simplifies

ordering by emphasizing speed and eliminating unnecessary complexities. By

doing so, it enhances customer interactions and operational efficiency without

relying on extensive labor management features. Efficient order management is

essential for improving customer satisfaction and streamlining operations. Java’s

scalability and maintainability further support these needs, offering a seamless

platform where customers can browse products, place orders, and receive order

summaries effectively, thus meeting the demands of businesses with simple

operational requirements.

Functional Requirements

The use of Java and MySQL in this system significantly streamlined the

process of the ordering system. First, using Java, we were able to develop a

console-based application with an interactive user interface that allows users to

view the menu, select items, and place orders. The Scanner class helped capture

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

user inputs, while various Java collections like ArrayList were utilized to store

information about items, quantities, and prices.

Meanwhile, MySQL provided the capability to store and retrieve data from a

database. Through JDBC (Java Database Connectivity), we established a

connection to the MySQL database where menu items and customer orders are

stored. The use of SQL queries enabled the system to fetch product data, update

orders, and save transactions efficiently. This integration ensures efficient data

management and easy access to information for future transactions.

The combination of Java and MySQL resulted in a real-time ordering system

capable of handling customer orders, generating receipts, and recording sales in the

database, thus enhancing the operational efficiency of the business.

NON-FUNCTIONAL

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

CASE DIAGRAM

ERD

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Relation Schema

DATA NORMALIZATION

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

DE-NORMALIZATION

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Table DESIGN AND INDEXING

DATA TYPES AND CONSTRAINT

The provided code implements a Java application for a basic food ordering

system that interacts with a MySQL database. Here's an overview of the data types

and constraints involved:

Data Types in the Code

1. Primitive Data Types:

o int: Used for menu item IDs (choose), quantities (quantity), and loop

counters.

o double: Used for item prices (total, pay).

o String: For textual data like item names and user responses (again,

items).

2. Collection Data Types:

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

o ArrayList<String>: Stores ordered item names (items).

o ArrayList<Integer>: Stores quantities of ordered items (quantities).

o ArrayList<Double>: Stores the total price per item (prices).

3. Database Types:

o Connection: Represents a connection to the database.

o Statement and PreparedStatement: Used for executing SQL queries.

o ResultSet: Stores the results retrieved from database queries.

Database Schema and Constraints

The code interacts with a database containing at least two tables: menu and orders.

1. Menu Table:

o Columns:

 id (Primary Key, INT): Unique identifier for each menu item.

 name (VARCHAR): Name of the food item.

 price (DOUBLE): Price of the food item.

o Constraints:

 id is unique and likely not null.

 price must be non-negative.

2. Orders Table:

o Columns:

 item (VARCHAR): Name of the ordered item.

 quantity (INT): Quantity ordered.

 price (DOUBLE): Price per unit.

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

 total (DOUBLE): Total price for the item.

o Constraints:

 quantity must be positive.

 price and total must be non-negative.

Constraints in the Application Logic

 Input Validation:

o Menu item selection ensures only valid IDs are accepted.

o Quantity and payment amounts are validated to be positive.

 Data Integrity:

o Prices and names are fetched dynamically from the database, reducing

manual entry errors.

o Orders are validated before being saved to the database.

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation


Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Mabini Campus
Sitio Mailayin, P. Niogan, Mabini, Batangas 4202
Tel Nos.: (+63 43) 425-0143 local 8103
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

College of Informatics and Computing Sciences

Leading Innovations, Transforming Lives, Building the Nation

You might also like