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

        代寫COP3503、代做Java程序設計
        代寫COP3503、代做Java程序設計

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



        Programming Assignment 3
        COP3503
        A sense of the Future
        In the year 2200, a futuristic city relies on autonomous delivery robots to transport packages 
        across different buildings. Each robot has a limited travel range before it must return to the 
        charging station. Each building is located at a certain distance from the robot dispatch center, and 
        a robot can only serve a building if it has enough travel capacity to reach it.
        Your task is to develop a greedy algorithm that efficiently assigns robots to buildings, ensuring 
        that the maximum number of deliveries are completed before the robots run out of travel 
        distance. Each robot can deliver to multiple buildings as long as it still has enough energy. You 
        do not need to worry about reserving extra energy for the robot to return to the charging station; 
        it has a reserved energy supply for that purpose.
        Your program will read from two text files that define the available robots and the buildings they 
        need to deliver to.
        For this assignment, you must follow these requirements.
        1. You must create your solution inside a class called GreedyRobots.
        2. You have been provided with 5 text files in a zip folder called "InputTextFiles.zip".
        • Each text file contains numerical values representing distances.
        • Files named robots represent the maximum travel range of each robot.
        • Files named buildings represent the distance of each building from the dispatch 
        center.
        • The number in the filename corresponds to a test case.
        o Example: robots1.txt and buildings1.txt represent test case 1.
        3. Your class should have the following attributes:
        • An integer array that stores the maximum travel range of each robot.
        • An integer array that stores the distance of each building from the dispatch center.
        • An integer representing the number of buildings that successfully received deliveries.
        • An integer representing the number of buildings that were left unserved.
        4. The GreedyRobots class has an overloaded constructor with four parameters:
        • The first parameter represents the number of available robots.
        • The second parameter represents the number of buildings that need deliveries.
        • The third parameter represents the name of the text file containing the maximum 
        travel range of each robot.
        • The forth parameter represents the name of the text file containing the distances of 
        each building.
        5. The GreedyRobots class, has a public non static method named readFiles()
        • It reads the respective text files (robotsX.txt and buildingsX.txt).
        • It stores the values in their respective arrays.
        6. The GreedyRobots class, has a public non static method named assignDeliveries() this method 
        will solve the problem of this assignment and it must:
        • Implements a greedy algorithm to maximize the number of deliveries.
        • The method must run in O(RM) time complexity, where R represents the number of
        robots and M represents the number of buildings.
        • Your solution must follow greedy techniques covered in the lecture.
        7. The GreedyRobots class, has a public non static method named displayResults(). This 
        method will display the results computed by assignDeliveries(). Simply, you will display the 
        number of successful and unserved deliveries. Each result should be displayed on a 
        separate line.
        Example Output:
        Successful Deliveries: 8
        Unserved Buildings: 2
        Assumption you can make about this program:
        • If a robot delivers to Building 1 and still has enough energy to reach Building 2, it can 
        proceed with the delivery to Building 2 without considering the distance between Building 1 
        and Building 2. The only constraint is that the robot must have sufficient remaining energy to 
        reach the next building from the dispatch center
        Submission Guidelines
        1. Submit your Java file (GreedyRobots.java) to Canvas
        2. Your code must follow the coding style provided with the assignment.
        3. Your code must work on Eustis
        4. All text files must be in the same directory as your driver file and solution file. DO 
        NOT create subfolders! Placing files in subdirectories will prevent our batch grader from 
        running your code correctly, which will result in point deductions that cannot be 
        disputed. You can assume that all moves in the text files are valid and that there are no 
        invalid characters.
        5. Ensure that your comment header follows the correct format, similar to the Styling 
        Guide, and is placed at the very top of your file. Failure to do so, including misplacing 
        the header or formatting it incorrectly, will result in point deductions as outlined in the 
        rubric.

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

        掃一掃在手機打開當前頁
      1. 上一篇:代寫COMP 315、代做Java編程設計
      2. 下一篇:FIN41920代做、代寫R程序語言
      3. 無相關信息
        合肥生活資訊

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

        主站蜘蛛池模板: 国产在线观看精品一区二区三区91 | 久久无码人妻精品一区二区三区| 视频一区二区在线观看| 无码人妻视频一区二区三区| 香蕉一区二区三区观| 成人区人妻精品一区二区不卡| 亚洲香蕉久久一区二区| 免费一区二区三区| 亚洲综合av永久无码精品一区二区| 精品久久久久久无码中文字幕一区| 一区二区免费视频| 无码人妻精品一区二区在线视频| 欧洲精品无码一区二区三区在线播放| 国产一区二区三区电影| 午夜视频在线观看一区| 色国产在线视频一区| 一区二区亚洲精品精华液| 国产精品视频一区二区三区| 亚洲天堂一区二区三区| 精品国产鲁一鲁一区二区| 精品女同一区二区三区免费站 | 亚洲欧美成人一区二区三区| 日韩高清国产一区在线| 无码乱人伦一区二区亚洲一 | 国产一区二区女内射| 日韩精品无码视频一区二区蜜桃| 中文字幕在线观看一区二区| 中文字幕日本精品一区二区三区| 久久久人妻精品无码一区| 精品无码综合一区| 亚洲一区二区三区四区在线观看| 亚洲一区二区三区四区在线观看| 国产精品高清一区二区人妖| 国产香蕉一区二区三区在线视频 | 久久精品国产第一区二区三区 | 无码精品人妻一区二区三区漫画| 日韩精品无码中文字幕一区二区 | 午夜性色一区二区三区免费不卡视频 | 成人精品视频一区二区三区尤物| 国产精品综合一区二区三区| 波多野结衣精品一区二区三区 |