合肥生活安徽新闻合肥交通合肥房产生活服务合肥教育合肥招聘合肥旅游文化艺术合肥美食合肥地图合肥社保合肥医院企业服务合肥法律

代做 ISOM3028、代写 Python/java 编程
代做 ISOM3028、代写 Python/java 编程

时间:2025-03-24  来源:合肥网hfw.cc  作者:hfw.cc 我要纠错



ISOM3028 - Advanced Computer Programming 
2025/2026
Section 002
 
 
Assignment 1​Due Date: 21 March, 2025 (IN CLASS)
___________________________________________________________________________
 
Note: Submit both hardcopy (printed format) and softcopy. 
 
1. For hardcopy, you are required to submit program listing, documentation, sample inputs and outputs. Documentation includes program description, function description, variable description and statement description. Inside program description, you need to mention the author name, i.e. your name, and student no.
 
2. For softcopy, please compress all the class and program files and send the compressed file through UMMoodle. Save your compressed file as “bc1xxxx_Ass1.zip”. Please remember to use your student number as part of compressed file name.
 
You are required to create an Book Management System for a book store. The system should allow the user to add new books, retrieve book information, update book information and display book information in the system.
Instructions:
1. Create a class named "Book" with the following attributes:
• isbn (String): unique identifier for each book
• bookTitle (String): name of the book
• category (String): book category name
• author (String): author name of the book
• publisher (String): publisher name of the book
• pubDate (LocalDate): publication date of the book
• price (float): current price of the book 
• stock (int): current stock level of the book
 
2. Implement a constructor in the "Book" class that initializes all the attributes based on a parameter list.
 
3. Implement the set and get methods for all the data fields mentioned above.
 
4. Create a class named "BookManagementSystem" to manage the books. This class should have the following methods:
• addBook(String isbn, String booktitle, String category, String author, String pub, String pub_date, float prc, int stock): Adds a new book to the system.
• findBook(String isbn): Retrieves book info. based on the isbn.
• changePrice(String isbn): Change book price based on isbn. 
• increaseStock (String isbn): Increase stock level based on isbn upon stock arrival. 
• displayBookList(String category): Displays all information of books based on a certain category.
• deleteBook (String isbn): Deletes a book from book list based on isbn.
 
5. Implement the "addBook" method in the "BookManagementSystem" class that creates a new "Book" object and adds it to a collection (e.g., ArrayList) of books.
 
6. Implement the "findBook" method that searches a book based on isbn and returns the book object if it is found; otherwise returns null value for the book object.
 
7. Implement the “changePrice” method that will change pricebased on isbn. It will display book title, isbn, category, author& publisher and ask user for the new price. It will update the new price of the corresponding book in the ArrayList.
 
8. Implement the "displayBookList" method that iterates through the collection of book list based on a specific category and displays their information on screen. (Note: Publication Date should be displayed as dd-MMM-yyyy)
 
9. Implement the “deleteBook” method that deletes a particular book from the book list based on isbn. It will display the information of the target book and then ask user for confirmation. If user confirms with ‘y’, the target book will be deleted from book list.
 
10. Create a main method in a separate class to test your BookManagement System. In the main method, create an instance of the "BookManagementSystem" class and display the following menu containing four functions and the system will ask the user to input a menu item to execute a particular function:
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 
For 1), the system should ask the user to input the new bookisbn, book title, category, author, publisher, publication date, book price and stock level. Then, it will ask users for confirmation before adding the book to the book list.
For 2), the system will ask the user to input isbn and it will display all book information if the book is found; otherwise display error message and ask the user to input again until the isbn is found.
For 3), the system will ask user to input isbn. If a book is found, it will display the isbn, book title, category, author, stock level and price before asking user to input the new price, which will be updated to the book list.
For 4), the system will ask user to input isbn and it will display book isbn, book title, category, author, stock level and price before asking user to input the quantities to be increased for the stock level of target book; and then the input quantitieswill be increased to current stock level.
For 5), the system will ask user to input book category, then it will display all information of the books that match the input book category. 
For 6), the system will ask user to input isbn and it will display book isbn, book title, category, author, price and stock level before asking user for confirmation. If ‘y’, the book will be deleted from book list.
For 7), the program will be terminated. For menu item 1) to 6), the system will display the menu and ask user to input menu item again when the corresponding function has been finished.
 
Testing data: (Try to add the following  book data into the system)
 
Book isbn: 019515****
Book title: Classical Mythology
Category: Mythology
Author: Mark P. O. Morford
Publisher: Oxford University
Publisher Date: 15 January 1999
Price: 229.9
Stock: 10
Book isbn: 0002005018
Book title: Clara Callan
Category: Genre Fiction
Author: Richard Bruce Wright
Publisher: HarperFlamingo
Publisher Date: 4 December 2003
Price: 83
Stock: 8
 
 
Book isbn: 1668068656
Book title: Marketing & Sales
Category: Travel
Author: Brian Kelly
Publisher: Avid Reader Press
Publisher Date: 4 February 2025
Price: 199.9
Stock: 5
 
 
Book isbn: ‎ 8304040525
Book title: Social Media Marketing Workbook: How to use Social Media 
Category: Marketing & Sales
Author: Jason McDonald
Publisher: Independently published
Publisher Date: 17 December 2024
Price: 320
Stock: 12
Book isbn: 1591844358 ‎ 
Book title: The Challenger Sale: Taking Control of the Customer Conversation
Category: Marketing & Sales
Author: Jason McDonald
Publisher: Portfolio
Publisher Date: 10 November 2011
Price: 95
Stock: 5
 
 
Book isbn: 1718502702
Book title: Python Crash Course
Category: Programming
Author: Eric Matthes
Publisher: No Starch Press
Publisher Date: 10 January 2023
Price: 230
Stock: 12
 
 
Book isbn: 1774583941
Book title: Lean Marketing: More leads. More profit. Less marketing
Category: Marketing & Sales
Author: Allan Dib
Publisher: O’Reilly Media
Publisher Date: 7 May 2024
Price: 200
Stock: 5
Book isbn: 1491910771
Book title: Head First Java: A Brain-Friendly Guide
Category: Programming
Author: Kathy Sierra
Publisher: O’Reilly Media
Publisher Date: 21 June 2022
Price: 329.99
Stock: 10
 
 
 
Sample I/O: (Fonts in red color are input data)
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 1
Enter new book isbn: 019515****
Book title: Classical Mythology
Category: Mythology
Author: Mark P. O. Morford
Publisher: Oxford University
Publisher Date (dd-MMM-yyyy): 15-Jan-1999
Price: 229.9
Stock level: 10
Are you sure to add this book? (y/n): y
New book added!
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 1
Enter new book isbn: 0002005018
Book title: Clara Callan
Category: Genre Fiction
Author: Richard Bruce Wright
Publisher: Harper Flamingo
Publisher Date (dd-MMM-yyyy): 04-Dec-2003
Price: 83
Stock level: 8
Are you sure to add this book? (y/n): y
New book added!
……
……
……
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 2
Enter book isbn: 0002005018
 
Book isbn: 0002005018
Book title: Clara Callan
Category: Genre Fiction
Author: Richard Bruce Wright
Publisher: HarperFlamingo
Publisher Date: 04-Dec-2003
Stock Level: 8
Price: 83.00
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 3
Enter book isbn: 1718502702
 
Book isbn: 1718502702
Book title: Python Crash Course
Category: Programming
Author: Eric Matthes
Publisher: No Starch Press
Publisher Date (dd-MMM-yyyy): 10-Jan-2023
Price: 230
Stock level: 12
New price: 250
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 4
Enter book isbn: 1718502702
 
Book isbn: 1718502702
Book title: Python Crash Course
Category: Programming
Author: Eric Matthes
Publisher: No Starch Press 
Publisher Date (dd-MMM-yyyy): 10-Jan-2023
Price: 250.00
Stock level: 12
Quantities to be increased: 5
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 5
Book Category: Programming
 
Book isbn: 1718502702
Book title: Python Crash Course
Category: Programming
Author: Eric Matthes
Publisher: No Starch Press
Publisher Date: 10-Jan-2023
Price: 250.00
Stock: 17
 
Book isbn: 1491910771
Book title: Head First Java: A Brain-Friendly Guide
Category: Programming
Author: Kathy Sierra
Publisher: O’Reilly Media
Publisher Date: 21-Jun-2022
Price: 329.99
Stock: 10
 
1. Create a new book
2. Find a book
3. Change book price
4. Increase stock level
5. Display book list
6. Delete a book
7. Exit
Please input a menu item (1 – 7) : 6
Enter book isbn: 8304040525
Book title: Social Media Marketing Workbook: How to use Social Media
Category: Marketing & Sales
Author: Jason McDonald
Price: 320
Stock level: 12
Are you sure to delete the book? (y/n) y
Book has been deleted!
请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp





 

扫一扫在手机打开当前页
  • 上一篇:代写 COM4008、代做 SQL 程序设计
  • 下一篇:关于射手花强制下款及客服电话投诉高额利息
  • 无相关信息
    合肥生活资讯

    合肥图文信息
    「多多评价助手」智能补单助手 | 出评软件自动开团工具
    「多多评价助手」智能补单助手 | 出评软件自
    急寻热仿真分析?代做热仿真服务+热设计优化
    急寻热仿真分析?代做热仿真服务+热设计优化
    出评 开团工具
    出评 开团工具
    挖掘机滤芯提升发动机性能
    挖掘机滤芯提升发动机性能
    戴纳斯帝壁挂炉全国售后服务电话24小时官网400(全国服务热线)
    戴纳斯帝壁挂炉全国售后服务电话24小时官网
    菲斯曼壁挂炉全国统一400售后维修服务电话24小时服务热线
    菲斯曼壁挂炉全国统一400售后维修服务电话2
    美的热水器售后服务技术咨询电话全国24小时客服热线
    美的热水器售后服务技术咨询电话全国24小时
    海信罗马假日洗衣机亮相AWE  复古美学与现代科技完美结合
    海信罗马假日洗衣机亮相AWE 复古美学与现代
  • 短信验证码 酒店vi设计 币安下载 NBA直播

    关于我们 | 打赏支持 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | 帮助中心 | 友情链接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥网 版权所有
    ICP备06013414号-3 公安备 42010502001045