首页 > 科技
FINT2100 Computer Programming and Application Development
(2023-2024 Semester 2)
Programming Project
Deadline: (Fri) 26 Apr 2024 (11:59pm)
(Upload all the Java source code files and test plan to Moodle by the deadline)
Project
Design and implement a menu-driven Library Management System.
Objective
Develop a Library Management System that allows librarians to manage books, readers,
and borrowing/returning operations efficiently through a console-based interface. The
system should provide functionality for adding and removing books, registering new
readers, and borrowing and returning books.
Features
1. Book Management
• Add new books to the library with details such as title, author, ISBN,
publication year, and availability status.
• Remove books from the library.
• Update book information.
• Display all books’ information.
• Search for a book by its ISBN and display the book's details if found.
2. Readers Management
• Add a new reader to the library by providing the reader's details such
as name, contact information, and a unique reader ID.
• Remove a reader from the library using their reader ID.
• Display the list of all registered readers.
• Search for a reader by their ID and display the reader's details if found.
3. Borrowing and Returning
• Allow a reader to borrow a book by providing their reader ID and the
book's ISBN.
• Validate the reader and book existence in the library.
• Check the availability of the book before allowing borrowing.
• Mark the book as borrowed and associate it with the reader if available.
• Allow a reader to return a borrowed book by providing their reader ID
and the book's ISBN.
• Update the book's availability status and remove the association with
the reader upon return.
Console-based User Interface
1. Main Menu
• Display options for book management, reader management,
borrowing and returning, and exiting the system.
• Prompt the user to enter their choice and navigate to the
corresponding submenu or perform the selected action.
2. Book Management
• Add a new book to the library by entering the book's details (title,
author, ISBN, publication year).
• Remove a book from the library by providing the book's ISBN.
• Display the list of all books in the library.
• Search for a book by its ISBN and display the book's details if found.
3. Reader Management
• Add a new reader to the library by entering the reader's details (name,
contact information, reader ID).
• Remove a reader from the library by providing the reader's ID.
• Display the list of all registered readers.
• Search for a reader by their ID and display the reader's details if found.
4. Borrowing and Returning
• Allow a reader to borrow a book by entering the reader's ID and the
book's ISBN.
Check if the reader and book exist in the library.
Check if the book is available for borrowing.
If the book is available, mark it as borrowed and associate it
with the reader.
Display a success message or appropriate error messages for
invalid input or unavailable books.
• Allow a reader to return a borrowed book by entering the reader's ID
and the book's ISBN.
Check if the reader and book exist in the library.
If the book is borrowed by the reader, mark it as returned
and update its availability.
Display a success message or appropriate error messages for
invalid input.
The menu should be displayed after each operation, allowing the librarian to perform
multiple actions without restarting the program. The program should exit when the
librarian chooses the "Exit" option from the main menu.
Technical Requirements
1. Use Java as the programming language.
2. Implement a console-based user interface for interacting with the Library
Management System.
3. Use appropriate data structures like arrays, to store book and reader
information.
4. Implement unit tests to verify the functionality of critical components.
5. Follow coding best practices, including proper naming conventions, code
comments, and modular design.
Project Deliverables
1. Java source code files organized in a structured manner.
2. Test cases and test data to demonstrate the functionality of the system.
3. Documentation explaining the system design in terms of the class structure,
methods, and key attributes.
Grading Criteria
• Correct implementation of the system functions
• User-friendly design of the system
• Good programming styles
• Clear and detailed documentation and testing
请加QQ:99515681 邮箱:99515681@qq.com WX:codinghelp
- 搜索
-
- 04-10重塑企业生产力!2025金智维企业级智能体暨AI+新品发布会成功举办,引领人机协同新范式
- 04-10数坤科技:引领医疗大模型全能时代
- 04-10“惊蛰号”——全球首艘内河全航程自动驾驶试验船顺利下水
- 04-10喜报丨易智瑞公司通过上海数据交易所数商资格认证
- 04-10打造酒业全面预算管理最佳实践,企云方助力金徽酒打造“数智化”全面预算平台
- 04-09安世亚太电力设备级数字孪生与AI虚拟传感解决方案
- 04-09铼赛智能Edge mini斩获2025法国设计大奖 | 重新定义数字化齿科美学
- 04-09口腔数字化大变革,这场行业大会带你率先把握未来机遇!
- 04-082025 年 Control4 中国区客户启动会在杭州成功举办,开启高端智能家居新征程
- 04-08多模态能力的进化,是AI眼镜成为生活必需品的关键