合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        代做 ISOM3028、代寫 Python/java 編程
        代做 ISOM3028、代寫 Python/java 編程

        時間:2025-03-24  來源:合肥網(wǎng)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





         

        掃一掃在手機打開當前頁
      1. 上一篇:代寫 COM4008、代做 SQL 程序設(shè)計
      2. 下一篇:關(guān)于射手花強制下款及客服電話投訴高額利息
      3. 無相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發(fā)動機性能
        挖掘機濾芯提升發(fā)動機性能
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)400(全國服務(wù)熱線)
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話24小時服務(wù)熱線
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復(fù)古美學與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機亮相AWE 復(fù)古美學與現(xiàn)代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 上海廠房出租 短信驗證碼 酒店vi設(shè)計

        主站蜘蛛池模板: 一区二区不卡久久精品| 无码人妻AⅤ一区二区三区水密桃| 午夜DV内射一区区| 中日韩一区二区三区| 怡红院AV一区二区三区| 精品不卡一区二区| 亚洲bt加勒比一区二区| 色狠狠色噜噜Av天堂一区| 日韩精品一区二区三区不卡| 国产一区二区成人| 亚洲一区在线观看视频| 无码人妻精品一区二区在线视频 | 国产精品一区二区久久| 国产免费一区二区视频| 中文字幕久久久久一区| 国产91精品一区二区麻豆亚洲| 精品免费国产一区二区| 无码喷水一区二区浪潮AV| 亚洲码欧美码一区二区三区| 亚洲一区二区三区乱码在线欧洲| 91在线一区二区| 中文字幕av一区| 天堂一区二区三区精品| 日韩久久精品一区二区三区 | 亚洲无删减国产精品一区| 国产亚洲自拍一区| 色欲AV蜜臀一区二区三区| 精品无码av一区二区三区| 3d动漫精品成人一区二区三| 3d动漫精品一区视频在线观看| 精品一区二区三区自拍图片区| 日本内射精品一区二区视频| 久久er99热精品一区二区| 无码丰满熟妇一区二区| 国产精品福利一区| 少妇无码AV无码一区| 日韩一区二区三区无码影院| 日韩中文字幕精品免费一区| 国产麻豆剧果冻传媒一区 | 另类国产精品一区二区| 日韩精品一区在线|