Introduction完成了题目所有的要求并且对异常的输入做了判断处理School of ScienceEdith Cowan UniversityCSP2151 AssignmentThis assignment is an extension of the Workshops you have been doing all semester. Whereappropriate, the standards set out in previous workshops should be followed and the code must makegood use of functions, structures and logical control flow.Design and Implement a complete drone delivery simulation program.The program should first load the drone_t data from a database file named “Drones.dro”. Theloaded data should be stored in a linked list of drone_t structures. The program should then load thedelivery_t data from a database file named “Deliveries.dro”. The loaded data should be storedin a linked list of delivery_t structures. These structures should follow the following specifications:Next, the program should display a menu system that allows the user to navigate through and executethe following options:• Set Warehouse Location• New Delivery• Dispatch• Exito Save and exito Exit without savingThe “Set Warehouse Location” should allow the user to set the latitude and longitude of thewarehouse that the drones will be dispatched from.The “New Delivery” option will prompt the user to enter details for a new delivery_t item to beadded to the end of the linked list of queued deliveries.The “Dispatch” option will process the next delivery. The user will be prompted to select anappropriate drone to make the delivery. The program will then calculate the total time taken for thedelivery (as per workshop 3), output that value to the screen and save all relevant information aboutthe delivery (drone name, delivery details, destination and time) in a file called“Dispatch_Log.txt”. After processing a delivery, it should be removed from the list. Deliveriesshould be dispatched in FIFO order (First In First Out). If no drone is capable of carrying the delivery,an error message should be printed and the user returned to the menu.The exit command should give the user the choice to save the current delivery queue back to the“Deliveries.csv” so it can be loaded the next time tC++代写 CSP2151 Assignment代写data structure编程he program is executed.delivery_t:namequantityweight_per_itemdestination_latitudedestination_longitudedrone_t:nametop_speedaccelerationmax_loadSchool of ScienceEdith Cowan UniversityAdditional Details:• When the “Save and exit” option is selected, the delivery list should be saved in the“Deliveries.dro” file in the correct format to be reloaded.• Sample .dro files will be provided on blackboard. These are only samples. You may modifythem or provide your own so long as they remain in the same format.• No example executable file will be providedBonus Marks:Additional work and effort to improve the program and make it more useful can be worth bonus marks.Bonus marks are not required and will not improve your grade above 100%Examples of features that may be worth bonus marks:• Improve the physics involved to use forces rather than raw acceleration and consider the effect ofincreased mass from heavier deliveries.• Create a priority queue where higher priority deliveries are processed before lower priority ones.• Allow drones to make multiple deliveries in one trip.• Add colours or use more advanced graphics such as nCurses or the WinAPI.• Ask your tutor if you have other ideas!NOTE: The Workshops have been working up to this point to provide you with a base program of yourown work that should give you the best possible opportunity for completing this assignment. You shouldlook to how these Workshops have developed your work for a guide on how to structure your finalassessment. No sample executables will be given for the final assignment.Marking Guide:Design/4Program performs calculations correctly/2Appropriate use of functions and abstraction /7Correct use of data structures (structs, linked lists, etc)/7Code is written legibly (formatting, comments, etc)/5Program compiles and runs correctly/3Output is neat and formatted/2Bonus /5Inappropriate use of Global Variables or GOTO statements(Very bad don’t do this)/-10Total:/30Course homepage转自:http://ass.3daixie.com/2019030313745711.html
讲解:C++ CSP2151 Assignmentdata structure
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- By clicking to agree to this Schedule 2, which is hereby ...
- 问题是指个人面对障碍的目标。 不能认知又不能习惯反应达到所欲目标过程中的 障碍 。 问题的三要素 一、关于问题的条...
- 一位穿着干净利索的姐,估计是做钟点工的,要去什么地方上工吧。正在兴高采烈的跟旁边一位姐唠着可能她也听说过的一位乡亲...
- 怀着忐忑的心情出发。格尔木到沱沱河的路况在青藏线上算是比较差的了,公路上很多被货车压出的坑,还有的路段在修路,不得...