合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

        代寫INFT1004、代做Python編程語言
        代寫INFT1004、代做Python編程語言

        時間:2025-05-02  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



        University of Newcastle 
        INFT1004/6004 - Introduction to Programming 
        Library Book Management System – Part 1
        Introduction
        This assignment involves developing a Python program to manage a library's inventory of books. 
        The program should utilise basic programming concepts taught in weeks 1 to 5, including 
        condition statements, loops, and functions . You might want to use the Math module, which is in 
        chapter 5 (this is optional).
        Carefully read the specification below. Make sure you have all the information necessary to start 
        writing the program. If you are uncertain of something, do not make assumptions. Instead, post your 
        questions to the "assignment 1" discussion board forum and check it regularly, or ask your 
        demonstrators during your lab. 
        Note that you must complete this assignment individually. Your solution must be your own work. 
        You may be required to participate in an oral exam for quality assurance, consisting of an interview 
        with one staff and will last approximately 10 minutes. During this time, we will ask you questions 
        about your assignment.
        Specifications
        Part 1 - Define initial book inventory: When the program runs, it will first prompt the user to 
        define initial inventory levels for different genres of books such as Fiction, Nonfiction, Science, 
        and History. Each genre can hold a maximum number of books: Fiction = 30, Nonfiction = 20, 
        Science = 15, History = 25. The user should not be able to input an amount exceeding the 
        maximum.
        Part 2 - Create Menu: After setting the initial inventory levels, the program will display a menu of 
        actions to the user. After an action is selected and executed, the menu will reappear until the user 
        opts to quit. If the user enters an invalid option, the program will display an error message and 
        request a valid input again. The menu options are:
        • Action 1: Check out a book. The user will input one of the genre of the book (Fiction, 
        Nonfiction, Science, History) they want to borrow. The program should check if there is 
        inventory available for the requested genre. After book is borrowed the inventory will be 
        updated accordingly.
        • Action 2: Return a book. The user will input the genre of the book they are returning. The 
        program should update the inventory accordingly.
        • Action 3: Inventory analysis. The program will report (print) how many books are 
        available in each genre. It will also indicate if the inventory for a genre is 'high' (>= 75% 
        capacity), 'ok' (50-74% capacity), or 'low' (< 50% capacity).
        • Action 4: Restock inventory. The user will be shown the current inventory and asked how 
        many books they want to add to each genre, considering the maximum limits. The 
        program will confirm once the inventory has been updated (if the user tries to input an 
        amount higher than the maximum, the program will show a message and ask again). Finally, 
        the function should print a message indicating that the inventory has been restocked and will 
        show the new amounts of genre.
        • Action 5 (FOR INFT6004STUDNETS ONLY): Genre Checkout Summary -This feature will 
        allow the user to see how many times books from each genre were checked out. This can 
        help the library staff to understand which genres are currently most popular.
        • Action 6: Quit. Exit the program with a farewell message.
        Note that all inputs above should be positive numbers. If they are negative, the program should 
        show a message and ask the input again.
        Program Requirements:
        • A separate function should handle each part of the menu options, plus the initial 
        inventory definition and the menu display itself.
        • Define a function called initialise_inventory() to perform the functionality ‘Define initial 
        inventory’. The initialise_inventory() function should ask the user the amounts to the initial 
        inventory levels for Fiction, Nonfiction, Science and History. The function will call another 
        function called check_inventory_limit() described below. The function should ask the input 
        again if the amounts exceed the maximum allowed, which the function below will check. 
        • The check_inventory_limit() function will receive as parameters the number of Fiction, 
        Nonfiction, Science and History input by the user. The function will check that these amounts 
        are less or equal to the maximum possible. The maximum possible is: Fiction = 30, Nonfiction 
        = 20, Science = 15, History = 25. The function check_inventory_limit() should return True (if 
        the amounts are less or equal to the maximum allowed) or False (if the amounts are higher 
        than possible). 
        • The main program loop will trigger define initial inventory, and then will have a loop that allows 
        the user to choose one of the other functionalities (i.e. display the menu). The loop should 
        handle an invalid input and continue running until the user chooses to quit.
        Complete each function one at a time, and test the program before trying to implement a new 
        function. 
        Program Comments 
        At the beginning of your program you will have the following details and format as well as comments 
        for the program. 
        Author: <your name>
        Date: Start date and upload date 
        Task: INFT1004/INFT1006 Assignment 1 Library Book Management System
        Comments are expected for each block of the code about what a block of code is intended to achieve. 
        This will be at a function level and also for any inline code. In addition, add other comments that are 
        potentially important for any reader of your code.
        What to submit. 
        You should submit the Python file called (<your name>Assign1.py) electronically via the "Assignment 
        1" link on Canvas. For example, your name is Abby Zammit, your file will be called 
        AbbyZammitAssign1.py 
        Handing in your work 
        You are to hand in the assignment electronically using Canvas’s Assignment facility. Remember, you 
        are to hand in your python code named correctly - (this was described under “file for submission” 
        above. It should be something like AbbyZammitAssign1.py (of course use your own name! ) 
        When you are ready to submit your code file, log in to Canvas, go to the site for this course, and follow 
        these steps: 
        • Select the Modules folder. 
        • Click the Assignment 1 link, which will take you to the appropriate upload page. 
        • Click or drag the file as below. Then hit Submit Assignment. 
        • If you wish to see if the correct file has been uploaded then just click the download icon as below. 
        • If you want to submit an updated version of the assignment, go back to the Assignment link and click 
        Try Again. 
        Make sure you’re aware of the deadline: the final marking will be applied only to the most recent 
        submission, and if it’s submitted late it will be marked as late. 
        Marks will be awarded for: layout, both visual (variable names, indentation) and structural (scope of 
        variables, use of functions); documentation (comments); and ability of the submission to perform as 
        specified. A more detailed marking schema is available.
        Late Penalty and adverse circumstances 
        Note that your mark will be reduced by 10% for each day (or part day) that the assignment is late. This 
        applies equally to week and weekend days. You are entitled to apply for special consideration if adverse 
        circumstances have had an impact on your performance in an assessment item. This includes applying 
        for an extension of time to complete an assessment item. 
        In the Canvas you will find a new forum in the discussion board: “assignment1”. Any question about 
        the assignment 1 you can post there. Check this forum regularly.

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


         

        掃一掃在手機打開當前頁
      1. 上一篇:CAN202代做、代寫MATLAB設計程序
      2. 下一篇:代做 INFT1032、代寫 SQL 程序設計
      3. 無相關信息
        合肥生活資訊

        合肥圖文信息
        急尋熱仿真分析?代做熱仿真服務+熱設計優化
        急尋熱仿真分析?代做熱仿真服務+熱設計優化
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
        合肥機場巴士2號線
        合肥機場巴士2號線
        合肥機場巴士1號線
        合肥機場巴士1號線
      4. 短信驗證碼 酒店vi設計 NBA直播 幣安下載

        關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
        ICP備06013414號-3 公安備 42010502001045

        久久精品国产亚洲AV网站| 日韩美香港a一级毛片| 久久精品国产亚洲AV麻豆网站| 成人区精品人妻一区二区不卡| 亚洲精品无码久久久久AV麻豆| 日韩亚洲AV无码一区二区不卡| 国产精品国产三级国产av中文| 国产精品无码一区二区三区毛片| 99久久99久久久精品齐齐| 91精品导航在线网址免费| 久久国产乱子伦精品免费不卡| 囯产精品久久久久久久久蜜桃| 精品久久国产一区二区三区香蕉| 九色国产在视频线精品视频| 亚洲日韩中文字幕一区| 国产日韩AV免费无码一区二区三区| 国产精品模特hd在线| 精品久久久BBBB人妻| 成人啪精品视频免费网站| 无码精品国产va在线观看dvd| 91精品国产麻豆福利在线| 久久精品国产四虎| 精品欧洲av无码一区二区三区| 亚洲国产精品免费在线观看| 91亚洲国产成人精品下载| 久久99精品久久久久久久久久| 99久久久国产精品免费牛牛| 999久久久免费精品播放| 久久精品国产成人| 无码人妻精品中文字幕| 少妇人妻无码精品视频app| 无码精品视频一区二区三区| 无码日韩精品一区二区免费暖暖| 热re99久久精品国99热| 99re66热这里都是精品| 91麻豆精品国产片在线观看| 亚洲制服丝袜精品久久| 国产精品一国产精品| 2020国产成人久久精品| 亚洲乱码日产精品一二三| 国产精品99久久久久久|