JavaInhouse (Kuldeep 22BCS12954)
JavaInhouse (Kuldeep 22BCS12954)
Submitted by
BACHELOR OF ENGINEERING
IN
Chandigarh University
JULY 2024
pg. 1
BONAFIDE CERTIFICATE
Certified that this project report “A Video Rental Inventory System and
Interest Calculator” is the bonafide work of “ Kuldeep singh” who carried
out the project work under my/our supervision.
SUPERVISOR
Ankita Sharma
Assistant Professor
pg. 2
TABLE OF CONTENTS
List of Tables ....................................................................................................... 3
Abstract................................................................................................................ 4
References ........................................................................................................... 15
List of Tables
Table 1 .................................................................................................................. 9
Table 2 .................................................................................................................. 10
Table 3 .................................................................................................................. 10
Table 4 .................................................................................................................. 10
pg. 3
ABSTRACT
This report presents the design and implementation of two Java based systems: "A Video Rental
Inventory System" and an "Interest Calculator." The Video Rental Inventory System is created to
manage the inventory of a small video rental store, encompassing functionalities such as tracking video
rentals, returns, and user ratings. The system employs object oriented principles, defining classes for
videos and the video store, and implementing methods for inventory management and user interactions.
The Interest Calculator system calculates interest for various bank account types, considering factors
like the account type, the account holder's age, and the account duration. It involves creating an abstract
account class and specific subclasses for fixed deposits (FD), savings bank (SB), and recurring deposits
(RD). Method overriding is used to tailor interest calculations, and user defined exceptions handle
invalid inputs.
Through these projects, we explore key concepts in object oriented programming, such as class
inheritance, encapsulation, and polymorphism. By addressing real world scenarios, these
implementations demonstrate the practical application of Java in developing robust, efficient, and user
friendly systems.
CHAPTER 1
INTRODUCTION
This report explores the design and implementation of two Java based systems: "A Video Rental
Inventory System" and an "Interest Calculator." These systems showcase the application of object
oriented programming (OOP) principles to address specific real world requirements.
Interest Calculator
The Interest Calculator system provides a solution for calculating interest rates across different types of
bank accounts: Fixed Deposits (FD), Savings Bank (SB), and Recurring Deposits (RD). Depending on
factors such as the account type, account holder's age, and duration, the system computes interest gains
using specific rate tables. It employs an abstract account class with subclasses for each account type,
employing method overriding to customize interest calculations. User defined exceptions handle invalid
inputs to ensure robustness and reliability.
These systems illustrate how Java's OOP features like inheritance, polymorphism, and encapsulation
can be leveraged to develop efficient and scalable solutions for diverse application domains. The
following sections detail the design, implementation, and testing of each system, providing insights into
their architecture and functionality.
In the development and implementation of the Video Rental Inventory System and the Interest
Calculator, several key problems and challenges can be identified:
pg. 6
• Implement secure data storage mechanisms and encryption techniques to protect
sensitive user data, adhering to data privacy regulations (e.g., GDPR, CCPA) in the
Video Rental Inventory System and financial data in the Interest Calculator.
6. Testing and Quality Assurance:
• Conduct unit testing to validate the functionality of individual components and
integration testing to ensure seamless interaction between modules.
• Perform usability testing to evaluate the user experience and identify areas for
improvement in interface design and system usability.
7. Documentation and Reporting:
• Prepare comprehensive documentation, including system architecture diagrams,
class diagrams, user manuals, and technical documentation for future maintenance
and support.
• Generate reports summarizing system functionality, test results, and compliance with
project requirements and objectives.
8. Deployment and Maintenance:
• Deploy the systems in a production environment, ensuring compatibility with
existing infrastructure and performing post deployment testing to verify system
performance and stability.
• Establish a maintenance plan to address bugs, updates, and enhancements based on
user feedback and changing business requirements.
pg. 7
CHAPTER 2
LITERATURE REVIEW
Inventory Management Systems
Inventory management systems play a critical role in optimizing operations across retail and rental
industries. Effective inventory control involves tracking stock levels, managing orders, and minimizing
costs while ensuring product availability (Kumar & Kumar, 2014). Modern systems integrate barcode
scanning, RFID technology, and real time data analytics to streamline processes and enhance efficiency
(Sanders, 2019).
pg. 8
CHAPTER 3
DESIGN FLOW
Design constraints and table structures play a crucial role in shaping the architecture and functionality
of the Video Rental Inventory System and the Interest Calculator. Here’s an overview of design
constraints and a proposed table structure for both systems:
Design Constraints
pg. 9
| email | varchar(100) | YES | | NULL | |
| role | varchar(20) | YES | | customer| |
• Transaction History Table (for both systems, recording rental transactions and financial
activities):
+ + + + + + +
| Field | Type | Null | Key | Default | Extra |
+ + + + + + +
| id | int | NO | PRI | NULL | auto increment |
| customer id | int | YES | | NULL | |
| video id | int | YES | | NULL | |
| type | varchar(50) | YES | | NULL | |
| date | datetime | YES | | NULL | |
+ + + + + + +
• User Ratings Table (for Video Rental Inventory System, managing user ratings for videos):
+ + + + + + +
| Field | Type | Null | Key | Default | Extra |
+ + + + + + +
| rating id | int | NO | PRI | NULL | auto increment |
| video id | int | YES | | NULL | |
| customer id | int | YES | | NULL | |
| rating | int | YES | | NULL | | +
+ + + + + + *
Creating a use case diagram helps visualize the interactions between actors and the system for both the
Video Rental Inventory System and the Interest Calculator. Here's a basic outline of the use case
diagrams for each system:
Use Case Diagram for Video Rental Inventory System
Actors:
1. Customer: Interacts with the system to rent videos, return videos, rate videos, and check inventory.
2. Administrator: Manages the video inventory, adds new videos, and views system reports.
Use Cases:
1. Customer Use Cases:
pg. 10
Rent Video: Customer rents a video from the inventory.
Return Video: Customer returns a rented video to the store.
Rate Video: Customer gives a rating to a video after watching it.
Check Inventory: Customer views the list of available videos.
Generate Report: Administrator generates reports on inventory status, rental history, or customer
feedback.
Relationships:
Customer can perform all customer use cases.
Administrator can perform all administrator use cases.
There may be an association relationship between Customer and Administrator indicating shared
functionalities like checking inventory.
Use Cases:
1. Customer Use Cases:
Calculate FD Interest: Customer calculates interest for a fixed deposit based on amount and duration.
Calculate RD Interest: Customer calculates interest for a recurring deposit based on monthly
installment amount and duration.
Relationships:
Customer can perform both FD and RD interest calculation use cases.
Administrator can update interest rates for FD and RD.
pg. 11
CHAPTER 4
RESULTS ANALYSIS AND VALIDATION
In assessing the effectiveness of the Video Rental Inventory System, thorough results analysis and
validation processes are essential to ensure its functionality and user satisfaction. The system's
performance can be evaluated by analyzing customer interactions, such as the efficiency of renting,
returning, and rating videos. By reviewing user feedback and usage statistics, the system's ability to meet
customer needs and expectations can be gauged effectively. Additionally, examining inventory
management reports provides insights into the system's accuracy in tracking video availability and
managing rental transactions. This analysis helps identify any operational inefficiencies or areas for
improvement, ensuring a seamless experience for both customers and administrators.
Validation of the Video Rental Inventory System involves rigorous testing to verify its functionalities
and data integrity. Usability testing with representative users helps uncover usability issues or navigation
challenges, ensuring that the interface is intuitive and user friendly. Functional testing ensures that core
operations like renting, returning, and listing inventory work correctly across different scenarios and user
inputs. Moreover, data validation checks validate the accuracy of stored information, such as video
statuses (checked out or available) and user ratings. By validating these aspects, the system can reliably
support day to day operations of a video rental store, enhancing customer satisfaction and operational
efficiency.
Similarly, the Interest Calculator requires meticulous results analysis and validation to ensure accurate
and reliable calculation of interest rates for various financial products. Results analysis focuses on
evaluating the precision of interest rate calculations based on input parameters such as amount, duration,
and account type (e.g., FD or RD). Assessing the system's ability to update interest rates promptly and
correctly in response to administrator inputs is crucial for maintaining financial accuracy and regulatory
compliance. Furthermore, gathering and analyzing user feedback on the clarity and usefulness of
calculated interest results informs iterative improvements to the system's user interface and functionality.
Validation of the Interest Calculator involves rigorous testing of its calculation algorithms under diverse
scenarios and boundary conditions. Comprehensive testing ensures that interest calculations are accurate
and consistent across different input ranges and financial scenarios. Boundary testing validates the
system's robustness by assessing its performance with minimum and maximum values for amounts and
durations. Regression testing post rate updates verifies that existing functionalities remain intact and
unaffected by system changes. By conducting thorough validation processes, the Interest Calculator can
reliably assist users in making informed financial decisions while adhering to industry standards and
regulatory requirements.
In conclusion, results analysis and validation are integral to refining and optimizing both the Video Rental
Inventory System and the Interest Calculator. These processes ensure that the systems operate effectively,
meet user expectations, and comply with industry regulations. Continuous improvement based on
analysis and validation feedback enhances system reliability, usability, and overall user satisfaction,
making them indispensable tools in their respective domains.
CHAPTER 5
5.1 Conclusion
In conclusion, the Video Rental Inventory System has been designed and implemented to effectively
manage the inventory and operations of a small video rental store. Through the development process,
key functionalities such as video renting, returning, rating, and inventory management have been
successfully integrated. The system allows customers to interact seamlessly with the inventory, providing
them with a user friendly interface to browse available videos, rent them, and return them after viewing.
Administrator capabilities enable efficient management of the video database, including adding new
titles, removing outdated ones, and generating insightful reports on inventory status and customer
preferences.
Moving forward, there are several avenues for future work to enhance the Video Rental Inventory
System:
Enhanced User Interface : Further refining the user interface based on user feedback and usability
testing to improve overall user experience and accessibility.
Integration of Advanced Features : Incorporating features such as personalized recommendations
based on customer viewing history and preferences to enhance customer engagement.
Mobile Application Development : Developing a mobile application version of the system to cater to
the increasing trend of mobile device usage among customers.
Analytics and Insights : Implementing advanced analytics to derive insights from customer ratings,
rental patterns, and inventory turnover, enabling data driven decision making for business growth.
Interest Calculator:
Regarding the Interest Calculator, it has been implemented to accurately calculate interest rates for
various financial products such as Fixed Deposits (FD) and Recurring Deposits (RD) based on user
inputs. The system supports different account types and provides reliable interest calculations that adhere
to regulatory standards and financial best practices. Customers can calculate potential earnings from their
investments based on current interest rates and investment durations, facilitating informed financial
planning and decision making.
Looking ahead, future work for the Interest Calculator could involve:
Expansion of Financial Products : Adding support for additional financial products like savings
accounts, loans, or investment portfolios, broadening the system's utility for diverse financial scenarios.
pg. 13
Real Time Rate Updates : Implementing mechanisms to fetch and display real time interest rates
from financial institutions or central databases, ensuring up to date and accurate information for
users.
Enhanced Security Features : Strengthening data security measures to safeguard sensitive financial
information and comply with evolving data protection regulations.
Integration with External Platforms : Enabling integration with third party financial management
tools or banking applications to offer a seamless user experience across different platforms.
Conclusion
In conclusion, both the Video Rental Inventory System and the Interest Calculator represent valuable
tools designed to meet specific business and user needs effectively. They demonstrate robust
functionality, accuracy in operations, and potential for further enhancement to adapt to changing
technological and market demands. By continuously iterating based on user feedback, technological
advancements, and industry trends, these systems can continue to deliver significant value to their users
and stakeholders.
Looking forward, ongoing development and improvement of these systems will focus on refining user
experiences, expanding feature sets, and integrating advanced capabilities to remain competitive and
relevant in their respective domains. Continuous innovation and adaptation will ensure that both systems
evolve in tandem with user expectations and industry advancements, maximizing their utility and impact
over time.
pg. 14
REFERENCES
• Gamma, E., Helm, R., Johnson, R., & Vlissides, J. (1994). Design patterns: Elements of reusable
object-oriented software. Addison-Wesley.
• Booch, G. (2007). Object-oriented analysis and design with applications. Addison-Wesley.
• Kumar, A., & Kumar, A. (2014). Emerging trends in inventory management: A review. International
Journal of Engineering Research & Technology (IJERT), 3(5).
• Sanders, N. R. (2019). Operations management: An integrated approach. Wiley.
• Norman, D. A. (2013). The design of everyday things: Revised and expanded edition. Basic Books.
• Nielsen, J. (1993). Usability engineering. Academic Press.
• Agarwal, S., & Jain, P. K. (2014). Comparative study of fixed deposits in Indian banks. International
Journal of Research in Management, Economics and Commerce, 4(2).
• DeLone, W. H., & McLean, E. R. (2003). The DeLone and McLean model of information systems
success: A ten-year update. Journal of Management Information Systems, 19(4), 9-30.
• Whitman, M. E., & Mattord, H. J. (2019). Management of information security. Cengage Learning.
• Kuner, C. (2013). European data protection law: Corporate compliance and regulation. Oxford
University Press.
pg. 15