EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Python代写
您的位置: 主页 > 编程案例 > Python代写 >
代写Python:python代写CSCE 101 Assignment #4: Travel Management System - Python代写
发布时间:2021-07-25 15:10:24浏览次数:
CSCE 101 Assignment #4: Travel Management System, Python Classes Due Friday, March 9, 11:59pm, via Canvas.In the Files folder is a folder named Assignment4, it contains: 1.A Python program, named travelSystem.py. 2.The Python application program interface (API) in travelClassAPI.pydefining a class travelItem. (You will complete this file as travelClass.py.) 3.The Python API in travelToolboxAPI.pydefining four functions. The functions readItems()and printItems()are complete, but the files readTransactions()and printTransactions()are only declarations of the interfaces. (You will complete this file as travelToolbox.py.) 4.Two text files that provide one test example, items4.csvand transactions4.csv. (You will want to create similar test files.) a.The items file is a sequence of lines, each of which has three comma-separated values: i.A unique tour ID (a string). ii.The name of that tour (a string). iii.The starting availability of seats for the tour (an integer). For example: 12345,Italy,100 If a string value in a CSV file includes a comma, it is enclosed in quotation marks. b.The transactions file is a sequence of lines, each of which has two commaseparated values: i.A tour ID (a string), for which there is a corresponding item in the items4.csvfile. ii.The number of seats for the transaction with that item (an integer). For example: 12345,10 A positive integer indicates a reservation and a negative integer indicates a cancellation. You are to complete the class travelItemin travelClass.py(from travelClassAPI.py) and the functions in travelToolbox.py(from travelToolboxAPI.py). •This will give you the experience of working on an existing code base, something that is common in software development. You will need to read and understand the existing code, which is a necessary and valuable skill. •I suggest that you write and test your work in the following order. 1.The definition for the class travelItemin travelClass.py. It will be similar to the example shown in class (available as travelDemoClass.py). You should write a little program to test it (along the lines of travelDemo.py). 2.The readTransactions()function, which will require you to understand and use the itemRecordsdictionary, and which is similar to the readItems()function. 3.The printSummary ()function so you can print the required output. This function must print output in the following format (for which I will post a hint on the Discussion Board): Tours ===== ID NAME Start Resv. Cancl. End 24680 France 50 10 0 40 12345 Italy 100 35 -10 75 13579 China 50 10 -10 50 •In the program travelSystem.py, which is provided, you will see that the variable itemRecordsis a dictionary with keys of item ID (a string) and values of objects of the travelItemclass. You can see that the function readItems()creates this dictionary. You will need to use this dictionary when you write readTransactions() toread the transactions. When you read a transaction, you will look up the object for that item using its ID as the key and then append the number of items for the transaction to the list of transactions in that object. •All of this may sound intimidating, but my solution has only 14 additional statements for travelClass.py(other than those which are identical to the example shown in class) and 17 additional statements for travelToolbox.py(most of which are similar to those in readItems() andprintItems()and many of which are print statements). However, this requires many simple things that must work together, and putting those simple things together is the challenge. Here are core specifications for the software. 1.Input.a.Your program will read the file items4.csv, which is an example input file, but you will want to make other test files. b.Your program will file the file transactions4.csv, which is an example input file, but you will want to make other test files. 2.Starting Availability.The availableStartfor each tour is provided in items4.csv.3.Reservations.The number of reservations for each tour is computed as the sum of all positive integers for that tour from transactions4.csv.4.Cancellations. The number of cancellationsfor each tour is computed as the sum of the negative integers for that tour from the file transactions4.csv. 5.Ending Availability. The availableEndfor each tour is computed as availableStartminus the number of reservations and cancellations for that tour.6.Output.The output is printed by printItems()and printSummary()in travelToolbox.py.You must: •Complete the files travelClass.py(from travelClassAPI.py) and travelToolbox.py(from travelToolboxAPI.py). •Add four lines of comments at the top of your files: #Author: yourName #Course: CSCE 101 #Assignment: 4 – Travel Management System, Python Classes #Date: 9 March 2018You must use CanvasUse Canvasto submit your two Python files. Grading Rubric Required Elements: Submitted program (30 points). Program executes without run-time error (maximum 20 points). Program executes given test case correctly (maximum 30 points). Program executes additional test cases correctly (maximum 20 points). Stylistic Elements: Comments, sections, organization, brevity, readability, output formatting, etc. (between –10 and +10 points). Total:Maximum 110 points. Scores should reflect the following subjective scale: 100 Exceptional. =90 Outstanding. =80 Good. =70 Acceptable. =60 Poor. 60 Unacceptable.代写CS Finance|建模|代码|系统|报告|考试编程类:C代写,JAVA代写,数据库代写,WEB代写,Python代写,Matlab代写,GO语言,R代写金融类:统计,计量,风险投资,金融工程,R语言,Python语言,Matlab,建立模型,数据分析,数据处理服务类:Lab/Assignment/Project/Course/Qzui/Midterm/Final/Exam/Test帮助代写代考辅导天才写手,代写CS,代写finance,代写statistics,考试助攻E-mail:[email protected]微信:BadGeniuscs 工作时间:无休息工作日-早上8点到凌晨3点如果您用的手机请先保存二维码到手机里面,识别图中二维码。如果用电脑,直接掏出手机果断扫描。

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。