Professional Documents
Culture Documents
Abirahamimmanuel (711520BCS002) Mini Project
Abirahamimmanuel (711520BCS002) Mini Project
TECHNOLOGY
(AN AUTONOMOUS I NS TIT U TI ON)
C O I MBA T O RE , TAM IL NADU-641402
Affiliated to Anna University, C hennai
Accredited by NAAC with ‘A’ Grade | Accredited by NBA ( C S E , E C E , E E E & M E C H )
B19CSP502 – M I N I P R O J E C T R E P O R T
Submitted by
ABIRAHAM IMMANVEL A
711520BCS002
B A C H E L O R OF E N G I N E E R I N G
IN
N O V E M B E R 2022
i
KIT - K A L A IG N A RK A R UNA N I D H I I N S T I T U T E O F
TECHNOLOGY
(AN AUTONOMOUS I NS TIT U TI ON)
C O I MBA T O RE , TAM IL NADU-641402
Affiliated to Anna University, C hennai
Accredited by NAAC with ‘A’ Grade | Accredited by NBA (CSE, ECE, EEE & MECH)
BONA FI D E C E R T I F I C A T E
iii
ACKNOWLEDGEMENT
T he feeling of gratitude and ful filling my duty would not have been complete
without my Project Supervisor, Mrs.R .SUMAT HY Assistant Professor Department
of Computer Science and Engineering. Speci al appreciation for the timely help and
guidance received.
I would also wish to express my gratitude to my mentors for the support rendered
throughout the project, and I thank all my faculty members for their valuable support.
L ast but never the least, I place my feeling of gratitude to my parents without
whom, making it this far wouldn’t have been possible.
Abiraham Immanvel A
iii
Abstract
The main objective of the project is to create an online book store that allows
users to search and purchase a book online based on title, author and subject. The
selected books are displayed in a tabular format and the user can order their books
online through credit card payment. Using this Website, the user can purchase a book
online instead of going out to a book store and wasting time. There are many online
book stores like Powell’s, Amazon which were designed using Html. I want to develop
a similar website using .NET, SQL Server. Online Book store is an online web
application where the customer can purchase books online. Through a web browser the
customers can search for a book by its title or author, later can add to the shopping cart
and finally purchase using credit card transaction. The user can login using his account
details or new customers can set up an account very quickly. They should give the
details of their name, contact number and shipping address. The user can also give
feedback to a book by giving ratings on a score of five. The books are divided into many
categories based on subject like Software, Database, English, and Architecture etc. The
Online Book Store Website provides customers with online shopping through a web
browser. A customer can, create, sign in to his account, place items into a shopping cart
and purchase using his credit card details. The Administrator will have additional
functionalities when compared to the common user. He can add, delete and update the
book details, book categories, member information and also confirm a placed order.
This application is developed using JSP, HTML 5, AND PHP Programming languages.
The Master page, data sets, data grids, user controls are used to develop the Online
Book store.
4
Chapter No Title Page No
Abstract 4
1 Introduction 7
2 System Study 8
3 System specification 11
4 Requirements specification 15
5 System design 19
5.2 Challenges 20
6 System testing 38
7 System implementation 40
8 Conclusion 41
9 Bibliography 43
9.1 Screenshot 50
5
Table of figures and Table
6
Chapter 1
Introduction
The Bookshop Automation System is to automate all operations in a bookshop.
Generally, it includes the Order Processing, Stock Management and Accounts
Management.
There are some common examples of the automation like that auto pilot system in
the aircraft, automatic home systems (electric system, water system, fire alarm system,
doors system etc). These are best examples of the automation systems.
Here we are trying to develop such type system which is provide the automation
on the any type of the bookshop. That means a shop which has the type system which
provides the facility to the customers of the shop to purchase the books from the shop
without any complexity.
For example, any customer wants to purchase any book from the shop than first
of all customer just choose the stream of the book than he/she can see the more than one
type of books there and then he/she can choose the specific book from there. And then
purchase it by paying price on bookshop cash counter and receives its invoice.
7
Chapter 2
System Study
During the manual management, the tasks, which are to be performed by its users, are:
Maintenance of Customers Records (including the new and the existing customers),
In case of Customer records, all information related to customers and the product
which the customer has purchased is to be stored in the Customers register. If the
changes in the customer profile (like Phone no, Address) occur, registers must be
updated.
In case of new product launched, all the entries like product name and brand
9
Good management: - in the sense of good management our system provides the
good management in the book keeping and provide the good scheduling in the
all the operations of the book shop.
Able to do all type of money transactions: - we are developing the type system
which is able to do all type of money transactions (debit & credit cards and
internet banking etc.)
Remove the complexity in the operations: - our system is providing the real-life
features to providing the service since the user of the system in not feel the
complexity in its operations.
Provide the flexibility in the purchasing in the books: - it provides the very easy
way to purchase the book from the book shop.
Networking: -It covers the maximum space through its network for its service
at anytime and anywhere.
10
Chapter 3
SYSTEM SPECIFICATION
11
3.3 SOFTWARE
HTML
HTML, in full hypertext markup language, a formatting system for displaying
material retrieved over the Internet. Each retrieval unit is known as a Web page (from world
wide web), and such pages frequently contain hypertext links that allow related pages to be
retrieved. HTML is the markup language for encoding Web pages. It was designed by the
British scientist Sir Tim Berners-Lee at the CERN nuclear physics laboratory in Switzerland
during the 1980s. HTML markup tags specify document elements such as headings,
paragraphs, and tables. They mark up a document for display by a computer program known as
a Web browser. The browser interprets the tags, displaying the headings, paragraphs, and
tables in a layout that is adapted to the screen size and fonts available to it.
HTML documents also contain anchors, which are tags that specify links to other Web pages.
An anchor has the form <A HREF= “http://www.example.com”> Example</A>, where the
quoted string is the URL (universal resource locator) to which the link points (the Web
“address”) and the text following it is what appears in a Web browser, underlined to show that
it is a link to another page. What is displayed as a single page may also be formed from
multiple URLs, some containing text and others graphics.
CSS
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended
to simplify the process of making web pages presentable. CSS handles the look and feel part of
a web page. Using CSS, you can control the colour of the text, the style of fonts, the spacing
between paragraphs, how columns are sized and laid out, what background images or colours
are used, layout designs, variations in display for different devices and screen sizes as well as a
variety of other effects. CSS is easy to learn and understand but it provides powerful control
over the presentation of an HTML document. Most commonly, CSS is combined with the
markup languages HTML or XHTML. CSS is created and maintained through a group of
people within the W3C called the CSS Working Group. The CSS Working Group creates
documents called specifications. When a specification has been discussed and officially ratified
by the W3C members, it becomes a recommendation. These ratified specifications are called
12
recommendations because the W3C has no control over the actual implementation of the
language. Independent companies and organizations create that software.
PHP
PHP is a script language and interpreter that is freely available and used primarily on
Linux Web servers. PHP, originally derived from Personal Home Page Tools, now stands for
PHP: Hypertext Pre-processor, which the PHP FAQ describes as a "recursive acronym." PHP
executes on the server, while a comparable alternative, JavaScript, executes on the client. PHP
is an alternative to Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP
script is embedded within a Web page along with its HTML. Before the page is sent to a user
that has requested it, the Web server calls PHP to interpret and perform the operations called
for in the PHP script. An HTML page that includes a PHP script is typically given a file name
suffix of ".php" ".php7," or ".phtml". Like ASP, PHP can be thought of as "dynamic HTML
pages," since content will vary based on the results of interpreting the script.
JAVASCRIPT
JavaScript is a programming language commonly used in web development. It was
originally developed by Netscape as a means to add dynamic and interactive elements to
websites. While JavaScript is influenced by Java, the syntax is more similar to C and is based
on ECMAScript, a scripting language developed by Sun Microsystems. JavaScript is a client-
side scripting language, which means the source code is processed by the client's web browser
rather than on the web server. This means JavaScript functions can run after a webpage has
loaded without communicating with the server. For example, a JavaScript function may check
a web form before it is submitted to make sure all the required fields have been filled out. The
JavaScript code can produce an error message before any information is actually transmitted to
the server. Like server-side scripting languages, such as PHP and ASP, JavaScript code can be
inserted anywhere within the HTML of a webpage. However, only the output of server-side
code is displayed in the HTML, while JavaScript code remains fully visible in the source of the
webpage. It can also be referenced in a separate .JS file, which may also be viewed in a
browser.
13
MYSQL
Microsoft SQL Server is a relational database server, developed by Microsoft: It is a
software product whose primary function is to store and retrieve data as requested by other
software applications, be it those on the same computer or those running on another computer
across a network (including the Internet). There are at least a dozen different editions of
Microsoft SQL Server aimed at different audiences and for different workloads. True to its
namesake, Microsoft SQL Server's primary query languages are T-SQL and ANSI SQL.
XAMPP
XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache, M
stands for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-source
package of web solutions that includes Apache distribution for many servers and command-line
executables along with modules such as Apache server, MariaDB, PHP, and Perl. XAMPP
helps a local host or server to test its website and clients via computers and laptops before
releasing it to the main server. It is a platform that furnishes a suitable environment to test and
verify the working of projects based on Apache, Perl, MySQL database, and PHP through the
system of the host itself. Among these technologies, Perl is a programming language used for
web development, PHP is a backend scripting language, and MariaDB is the most vividly used
database developed by MySQL.
14
Chapter 4
Requirement Specification
availability of a book either by using the book title or by using the name of author.
If the book is not currently sold by the bookshop, then the customer is asked to enter the
full detail of the book for procurement of the book by the bookshop.
The customer can also provide his e-mail address and mobile, so that he can be
intimated automatically by the software as and when the book copy received.
If a book in stock, the exact number of copies available and the rack number in which
the book.
The manager can periodically view the request field of the book arrive at a rough
BAS should allow employees to update inventory whenever new supply arrives. Also,
of time and also determine the inventory level required for various books.
The inventory level required for a book is equal to the number of copies of the book sold
over a period of one week multiplied by the average number of weeks it takes to
procure the book from its publisher.
Every day the bookshop owner would give a command for BAS to print the book which
have fallen below the threshold and the number of copies to be procured along with the
full address of the publisher
15
4.1 Interface Requirements
User Interfaces
The system users are: -
System administrators
The administrator logs on to the system by inserting administrator user name
and password. Administrator can do any transaction as well as editing all details inside
the database such as adding, editing and deleting a new user or adding, editing and
deleting items.
System users
System users are the ones who at the cashier and do transactions with
customers. The users have to enter the user’s name and password and click on ‘Login’
button. If user makes any mistake the system will ask for the correct username and
password until he enters the correct one.
When the user wants to do any transaction, user has to click on the menu icon
on the main menu. Then the transaction window will open. User has to enter the Book
No and press enter. Then user has to select the transaction type and the quantity. Then
click on the update button. Then the system will automatically update the database
according to the transaction type. Hardware Interfaces
another pc
16
Software Interfaces
System will interact with the system database to record all transaction
data.
Performance Requirements:
The response time for menu changes will be not more than 3 seconds.
The time for search for a book will not more than 3 seconds.
The time to print the stock valuation will not be more than 3 seconds.
The time taken to update the database or get information from the
Design Constraints:
Reliability
The system is thoroughly tested at the time of delivery so that
computational errors are minimized.
Maintainability
To make ease of maintain the system to the Book shop administrators the
user manual and the system manual is provided at the delivery. Each
module is designed independently so that at any change of a request can be
modified easily.
17
Security
Only the administrators have the authority to edit details in Users and
Items tables. No one can enter the system without a username and a
password. Normal system users cannot access the Administrators login. All
deleting actions are notified by a message box asking to confirm deletion.
18
Chapter 5
System design
5.1 General Characteristics
Product Function
The Book Shop System will perform following functions:
User Identification
Select service
Record purchases
Record sales
Calculate budget
User Characteristics
The users (Book shop officers) should have a basic computer literacy to work
with a computer.
The users of this software should be well trained and should give the relevant
General Constraints
The following are the general design constraints
Data encoding scheme: ASCII character.
19
Assumptions and Dependencies
5.2 Challenges
It was a difficult task to convince the staff members and the management
about the new technologies that are going to use in the proposed system
and it was difficult to win over them.
It was difficult to get the confirmation and the approval for the cost
about the proposed system and make the cashiers at the counter sure
about that they will not lose their jobs because of the system.
It was time consuming to collect the relevant information form the users
There was resistance from the cashiers for the system due to the fear of
losing their jobs and had to face this challenge also during that period.
20
Procedural design:
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CHAPTER 5
SYSTEM TESTING
The time lag between the cause and the appearance of the problem.
The effect of the system errors on the files and records within the
system.
A small system error can conceivably explode into a much larger Problem. Effective
testing early in the purpose translates directly into long term cost savings from a
reduced number of errors. Another reason for system testing is its utility, as a user-
oriented vehicle before implementation. Testing is the stage of implementation of
which aimed at ensuring that the system works accurately and efficiently before live
operation commences. Testing is vital to the success of the system. System testing
makes a logical assumption that if all the parts of the system are correct and the goal
will be achieved. The steps involved in testing are,
1. Unit testing
2. Integration testing
3. Acceptance testing & Validation testing
38
Unit Testing
Unit testing focuses verification efforts on the smallest of the software design
of the module. This is also known as module testing. Unit tests ensure that each path
of a business process performs accurately to the documented specifications,
functionality and contains clearly defined inputs and expected and expected results.
Integration Testing
Integration testing is any type of software testing that seeks to verify the
interfaces between components against a software design. Software components may
be integrated in an iterative way or all together ("big bang"). Normally the former is
considered a better practice since it allows interface issues to be localized more
quickly and fixed.
Acceptance testing
Acceptance testing can mean one of two things:
1. A smoke test is used as an acceptance test prior to introducing a new build
to the main testing process, i.e., before integration or regression.
2. Acceptance testing performed by the customer, often in their lab
environment on their own hardware, is known as user acceptance testing
(UAT). Acceptance testing may be performed as part of the hand-off process
between any two phases of development.
Validation Testing
Validation succeeds when the developed system functions as per the requirements of
the customer. Software validation is achieved through a series of black box that
demonstrate the conformity with the requirements. Deviations or errors in this step
are corrected.
39
CHAPTER 6
SYSTEM IMPLEMENTATION
System implementation is the process of making the newly designed system
fully operational and consistent in performance. The following step has been followed
in the implementation of the system.
Implementation in planning
User Training
As the part of implementation, the system is taken the site and loaded on to client's
computer. Some of the user's level, exposure to computer etc. These users are trained
first and they run the system for a month. A detailed documentation is prepared for
the employees and they trained to access the software. These users are trained first
and they can run the system for a month.
System implementation is the stage of the project when the theoretical design is
turned into a working system. If the implementation stage is not correctly planned and
controlled, it can be chaos.
40
Chapter 8
Conclusion
This Bookshop Automation System is an attempt to overcome the
present inefficient and time-consuming process of locating, reserving and
purchasing quality reading materials available in the store. Currently, clients
have to go through a time-consuming process to perform aforementioned tasks
which cause waste of labour and firms’ resources. Through our automated book
store solution, we provide an easy way of searching, reserving and purchasing
of books.
User data are validated and checked for authenticity with the data stored
in the system database. All the newly coined processes will address time
consuming, ineffective and inefficient areas of the existing system which has
been wasting a lot of firm’s resources such as, labour, electricity, equipment,
products and services, while discouraging customers to make purchases and
repelling clients from the book store.
Proposed system will support both clients and the store in many areas.
It’s worth analysing and identifying the benefits as it would directly influence
the productivity of the store.
Customer satisfaction plays the most vital role in any form of product
and service rendering store as the existence of any firm solely depends on its
customer-base. Therefore, every system should facilitate the customer
satisfaction up to a certain extent which is feasible from the company
perspective.
41
The aforementioned facts ensure customer satisfaction to a greater extent
benefiting the store in:
These particulars will make sure the broadening the customer base of
the store which will have good impact on the sales and revenue of the
store.
42
Chapter 9
Reference and Bibliography
Australian Computer Society, 2003, ASC Code of Ethics. Retrieved March 15,
2007, from http://www.acs.org.au.htm
Out Source 2 India n.d. :Why Do Software Projects Fail? Retrieved 22 March
2007 from
http://www.outsource2india.com/software/SoftwareProjectFailure.asp
Start your journey the easy way n.d : Retrieved 4th February 2007 from
http://www.liverpooljohnlennonairport.com/TravelServices/CarParking.php
43
APPENDIX
Home.php
<?php
include 'config.php';
session_start();
$user_id = $_SESSION['user_id'];
if (! isset($user_id)) {
header('location:login.php');
}
if(isset($_POST['add_to_cart'])) {
$product_name = $_POST['product_name'];
$product_price = $_POST['product_price'];
$product_image = $_POST['product_image'];
$product_quantity = $_POST['product_quantity'];
if(mysqli_num_rows($check_cart_numbers) > 0) {
$message [] = 'already added to cart!';
} else {
mysqli_query($conn, "INSERT INTO `cart`(user_id, name, price,
quantity, image) VALUES('$user_id', '$product_name',
'$product_price', '$product_quantity', '$product_image')") or
die('query failed');
$message [] = 'product added to cart!';
}
?>
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>home</title>
</head>
<body>
<section class="home">
<div class="content">
<h3>Hand Picked Book to your door. </h3>
<p>Selling almost every genre of book, this bookstore continues to
be one of the most popular bookstores amongst Delhiites. </p>
<a href="about.php" class="white-btn">discover more</a>
</div>
</section>
<section class="products">
<div class="box-container">
45
<?php
$select_products = mysqli_query($conn, "SELECT * FROM
`products` LIMIT 6") or die('query failed');
if(mysqli_num_rows($select_products) > 0) {
while ($fetch_products =
mysqli_fetch_assoc($select_products)) {
?>
<form action="" method="post" class="box">
<img class="image" src="uploaded_img/<?php echo
$fetch_products['image']; ?>" alt="">
<div class="name"><?php echo $fetch_products['name']; ?></div>
<div class="price">$<?php echo $fetch_products['price']; ?>/-
</div>
<input type="number" min="1" name="product_quantity"
value="1" class="qty">
<input type="hidden" name="product_name" value="<?php echo
$fetch_products['name']; ?>">
<input type="hidden" name="product_price" value="<?php echo
$fetch_products['price']; ?>">
<input type="hidden" name="product_image" value="<?php echo
$fetch_products['image']; ?>">
<input type="submit" value="add to cart" name="add_to_cart"
class="btn">
</form>
<?php
}
} else {
echo '<p class="empty">no products added yet! </p>';
}
?>
</div>
</section>
<section class="about">
46
<div class="flex">
<div class="image">
<img src="images/bg.jpg" alt="">
</div>
<div class="content">
<h3>about us</h3>
<p>Bookly works to connect readers with independent
booksellers all over the world.</p>
<a href="about.php" class="btn">read more</a>
</div>
</div>
</section>
<section class="home-contact">
<div class="content">
<h3>have any questions?</h3>
<p>Feel free to ask any questions regarding our website or books
we sell. Any queris contact us</p>
<a href="contact.php" class="white-btn">contact us</a>
</div>
</section>
</body>
</html>
47
Header.php
<?php
if(isset($message)) {
foreach ($message as $message) {
echo '
<div class="message">
<span> ‘. $message.'</span>
<i class="fas fa-times"
onclick="this.parentElement.remove();"></i>
</div>
';
}
}
?>
<header class="header">
<div class="header-1">
<div class="flex">
<div class="share">
<a href="#" class="fab fa-facebook-f"></a>
<a href="#" class="fab fa-twitter"></a>
<a href="#" class="fab fa-instagram"></a>
<a href="#" class="fab fa-linkedin"></a>
</div>
<p> new <a href="login.php">login</a> | <a
href="register.php">register</a> </p>
</div>
</div>
<div class="header-2">
<div class="flex">
<a href="home.php" class="logo">Bookly. </a>
<nav class="navbar">
<a href="home.php">home</a>
<a href="about.php">about</a>
<a href="shop.php">shop</a>
<a href="contact.php">contact</a>
<a href="orders.php">orders</a>
48
</nav>
<div class="icons">
<div id="menu-btn" class="fas fa-bars"></div>
<a href="search_page.php" class="fas fa-search"></a>
<div id="user-btn" class="fas fa-user"></div>
<?php
$select_cart_number = mysqli_query($conn, "SELECT *
FROM `cart` WHERE user_id = '$user_id'") or die('query failed');
$cart_rows_number =
mysqli_num_rows($select_cart_number);
?>
<a href="cart.php"> <i class="fas fa-shopping-cart"></i>
<span>(<?php echo $cart_rows_number; ?>)</span> </a>
</div>
<div class="user-box">
<p>username: <span><?php echo $_SESSION['user_name'];
?></span></p>
<p>email: <span><?php echo $_SESSION['user_email'];
?></span></p>
<a href="logout.php" class="delete-btn">logout</a>
</div>
</div>
</div>
</header>
49
Output
Registration form:
Login form:
50
Admin dashboard:
51
Admin orders panel:
52
Message Panel:
53
User about Page:
Contact page:
54
User order history page:
User Cart:
55