Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

CS XXXXXXXXXXSQL Library Project Library System Programming Project Description This SQL programming project involves the creation of a database host application that interfaces with a backend...

1 answer below »
CS XXXXXXXXXXSQL Li
ary Project
Li
ary System Programming Project
Description
This SQL programming project involves the creation of a database host application that
interfaces with a backend SQL database implementing a Li
ary Management System. Users of
the system are understood to be li
arians (not book bo
owers).
This is an individual project.
Programming Language(s) and Frameworks
Your host application should have a GUI interface. You may implement either a native GUI
application or a web GUI interface.
Your application GUI may be programmed with Java, Ruby, Python, Javascript, or PHP. You
may use a web programming framework like Django (Python) or Node.js (Javascript). You may
use an ORM (object-relational mapping) framework, like Hibernate, provided that your SQL
schema is compatible with the requirements. Approved SQL databases are MySQL,
PostgreSQL, MS SQL Server, and SQLite.
If you would like to use any other language or framework not specifically listed above, you must
obtain prior approval from the TA that they are able to effectively evaluate the language of your
submission.
Functional Requirements
1) Graphical User Interface (GUI) and Overall Design [20 points]
All interface with the Li
ary database (queries, updates, deletes, etc.) must be done from a
graphical user interface of your original design. Your GUI application will interface with the
Li
ary database via an appropriate SQL connector. Initial database creation and population may
e done from command line or other admin tool.
Overall design will be judged on intuitive usability, not aesthetic design.
2) Book Search and Availability [20 points]
Using your GUI, be able to search for a book, given any combination of ISBN, title, and
or Author(s). Your search interface should provide a single text search field (like Google) and be
case insensitive. Your query should support substring matching (e.g. search for “william” should
eturn author “William Jones”, author “Sam Williamson”, and title “Houses of Williamsburg,
Virginia”). You should then display the following in your search results:
• ISBN
• Book title
• Book author(s) (displayed as a comma separated list)
• Book availability (is the book cu
ently checked out?)
3) Book Loans [20 points]
Checking Out Books
• Once found in a GUI search, be able to check out a book after being prompted for a
BORROWER(Card_no), i.e. create a new tuple in BOOK_LOANS. Generate a new
unique primary key for loan_id. The date_out should default to be today’s date.
The due_date should be 14 days after the date_out.
• Each BORROWER is permitted a maximum of 3 BOOK_LOANS. If a BORROWER
already has 3 BOOK_LOANS, then the checkout (i.e. create new BOOK_LOANS tuple)
should fail and return a useful e
or message.
• If a book is already checked out, then the checkout should fail and return a useful e
or
message.
Checking In Books
• Using your GUI, be able to check in a book. For examle, be able to locate
BOOK_LOANS tuples by searching on any of BOOKS.book_id, BORROWER.card_no,
and/or any substring of BORROWER name. Once located, provide a way of selecting
one of potentially multiple results and a button (or menu item) to check in (i.e. today as
the date_in in co
esponding BOOK_LOANS tuple).
4) Bo
ower Management [20 points]
• Using your GUI, be able to create new bo
owers in the system.
• All name, SSN, and address attributes are required to create a new account (i.e. value
must be not null).
• You must devise a way to automatically generate new card_no primary keys for each new
tuple that uses a compatible format with the existing bo
ower IDs.
• Bo
owers are allowed to possess exactly one li
ary card. If a new bo
ower is attempted
withe same SSN, then your system should reject and return a useful e
or message.
5) Fines [20 points]
• fine_amt attribute is a dollar amount that should have two decimal places.
• paid attribute is a boolean value (or integer 0/1) that idicates whether a fine has been
paid.
• Fines are assessed at a rate of $0.25/day (twenty-five cents per day).
• You should provide a button, menu item, etc. that updates
efreshes entries in the FINES
table. In reality, this would occur as a cron
atch script that executed daily.
• There are two scenarios for late books
1. Late books that have been returned — the fine will be [(the difference in days
etween the due_date and date_in) * $0.25].
2. Late book that are still out — the estimated fine will be [(the difference between the
due_date and TODAY) * $0.25].
• If a row already exists in FINES for a particular late BOOK_LOANS record, then
- If paid == FALSE, do not create a new row, only update the fine_amt if different than
cu
ent value.
- If paid == TRUE, do nothing.
• Provide a mechanism for li
arians to enter payment of fines (i.e. to update a FINES
ecord where paid == TRUE)
- Do not allow payment of a fine for books that are not yet returned.
- Display of Fines should be grouped by card_no. i.e. SUM the fine_amt for each
Bo
ower.
- Display of Fines should provide a mechanism to filter out previously paid fines (either
y default or choice).
Schema
The schema for the li
ary database is derived from (but NOT the same as) the li
ary schema in
the textbook (Figure 6.6). The actual schema used for this project is provided below. You are
permitted to modify or augment this schema provided that your system (a) is backwards
compatible with the given schema, and (b) adheres to the written requirements. As long as your
system supports the documented functionality, you may add any features you deem useful.
BOOK
Isbn Title
BOOK_AUTHORS
Isbn
BORROWER
Card_id Bname Address Phone
BOOK_LOANS
Card_id Date_out Due_date Date_in
Ssn
Loan_id
FINES
Fine_amt PaidLoan_id
AUTHORS
Author_id
Author_id
Name
Isbn
Data
• Baseline data to initialize your database is provided in the eLearning programming
assignment folder.
• All data is provided in plain text CSV files. Note that there is not a one-to-one, file-to-
table co
espondence. Part of your system design task to map (i.e. normalize) these data
onto your schema and tables.
• All book id's are 10-character ISBN numbers (i.e. some contain alpha characters). Note
that some may contain leading zeroes. These are part of ISBN and should not be
truncated!
Submission
You will be required to submit the following files:
• A design document that describes your system architecture including design decisions
and assumptions XXXXXXXXXXpages 12 point font, not including any schema diagrams or
system architecture figures). Format should be PDF.
• A Quick Start user guide for li
arian system users (1-2 pages).
• A readme.txt file that describes how to compile, build, and install your application. It
should include any technical dependencies (language, frameworks, platform, OS,
software li
aries, software versions, etc.).
• All application source code, including any build files (e.g. make, ant, maven, etc.).
• All files must be zipped together into a single file. This file should be
named _cs6360.zip, where is your Net ID.
Example: cid021000_cs6360.zip
Grading
Milestone 1 will be graded by the TA offline.
Milestone 2 will be graded by the TA over a live stream demonstration.
An online sign-up mechanism will be made available to reserve a specific time with the TA for
evaluation and grading. As a courtesy to the TAs and those waiting behind you, please be on
time for your scheduled slot and have your application already launched and ready to go.
Each student will have 10-15 minutes to demonstrate their system and execute the test cases
provided at grading time. Test cases will be designed to validate use cases from the published
equirements.
Answered 9 days After Nov 08, 2022

Solution

Aditi answered on Nov 18 2022
56 Votes
Li
ary Management System
QUICK START GUIDE
This li
ary administration system was developed to digitally handle the different tasks associated with managing a li
ary. The main login page of the online application, where a user identifies himself, is seen in the image below.
In the above screen we can see the fields which a user has to fill in order to get registered in the system. The fields in the form are:
1. First Name
2. Last Name
3. SSN
4. Address
5. Phone numbe
6. Password
Clicking on the signup page will lead you the home page
LOGIN PAGE
If you already have an account, you may access the system by going to the login screen and entering your card username and password.
The presented results include the
anches where they are located, the number of copies that really are accessible in each
anch, and, if the book is available, a button to check it out.
The user may check that out...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here