Skip to main content
留学咨询

辅导案例-L3

By May 15, 2020No Comments

Problem Set 1 Only the first submission marked will be counted. Do not press mark until you are ready to submit. TfNSW is exploring options for the operation of Sydney L3 light rail transit (LRT) system between Juniors Kingsford and Circular Quay as shown on the following map. For the trial period, the system is supposed to run once every 10 minutes from each terminus (endpoint). The first service departs at 6 am and the last departure is 10 pm from both ends. The LRT averages V km/h when in operation from one endpoint to the other, and then waits for the next departure time before leaving to return in the other direction. The characteristics of the network are as follows: • Distance between stations is uniform. It is D km between two successive stops. D comes from the SystemCharacteristics.csv file. • Vehicle average speed is V km/h. The average speed includes accelerations, decelerations, cruising, dwell time and traffic signals. V is in the SystemCharacteristics.csv file. • Direction=0 is for Kingsford services from Circular Quay, and direction=1 is for Circular Quay services from Juniors Kingsford. Note: Your code should be able to read and extract the necessary information out of the csv file. It will be tested against hidden alternative versions of the SystemCharacteristics.csv file. (a) The first task is to use your unikey to determine a case study stop based. The structure of your unikey is a combination of four letters and four digits: “ssssdddd” (‘CIVL3704’ for example). Create four variables for the four digits: for CIVL3704, D1 is 3, D2=7, D3=0 and D4 is 4). If D1 is an even number, your start point is Circular Quay; if D1 is odd, your start point is Juniors Kingsford (eg. for D1=3, the start point is Juniors Kingsford). Consider the D4-th station from your start point as your case study. As described in the scaffold, update the unikey variable, generate any new variables that are required and print the following statement about your case study where _D4_ and _startpoint_ are replaced by your case study variables. (10 pts) ‘My case study is _D4_ station(s) away from _startpoint_.’ (b) Read in the file SystemCharacteristics.csv to obtain values for D and V. V and D must be read from the file since your code will be tested against hidden versions of the file. Create variables for V and D and print the following statement where _linedistance_ and _speed_ are based on the variables D and V. (15 points) ‘The total length of line L3 is _linedistance_ km and the average speed is _speed_ km/h.’ (c) Create a timetable of your case study stop where times are recorded as strings with the format hh:mm and columns are labeled as the following example. The trip_id indexes the departure number in each direction. Save the timetable as timetable.csv. (40 points) (d) Assume X= min(D2,D3) and Y= max(D2,D3). Write a piece of code to count how many services arrive at the stop combining both directions between 1X:00 to 1Y:30 (eg. CIVL3704, 10:00 – 17:30). Save the value in a variable called service_count. (20 points) (e) How many LRT vehicles are required to maintain the schedule with 10-minute headways in each direction? You can ignore the need for spare vehicles or shunting time (moving the vehicles onto a different track to change directions). Save the value in a variable called vehicles. (15 points) You may run your notebook as many times as you like. Be mindful that the code and comments provided in the initial scaffold are required for the marking, so do not delete them. When you are satisfied with your solution, save and press mark. Your mark for the problem set is based on the first valid submission. After you receive your mark, you will be able to resubmit in order to test changes and see how it changes the score, but the recorded mark will be based on the initial submission. Academic honesty While the University is aware that the vast majority of students and staff act ethically and honestly, it is opposed to and will not tolerate academic dishonesty or plagiarism and will treat all allegations of dishonesty seriously. Further information on academic honesty, academic dishonesty, and the resources available to all students can be found on the academic integrity pages on the current students website: https://sydney.edu.au/students/academic- integrity.html. Compliance statement In submitting this work, I acknowledge I have understood the following: • I have read and understood the University of Sydney’s Academic Honesty in Coursework Policy 2015. • The work is substantially my own and where any parts of this work are not my own I have indicated this by acknowledging the source of those parts of the work and enclosed any quoted text in quotation marks. • The work has not previously been submitted in part or in full for assessment in another unit unless I have been given permission by my unit of study coordinator to do so. • The work will be submitted to similarity detection software and a copy of the work may be retained for future similarity checking. • Engaging in plagiarism or academic dishonesty will, if detected, lead to the University commencing proceedings under the Academic Honesty in Coursework Policy 2015 and the Academic Honesty Procedures 2016. • Engaging another person to complete part or all of the submitted work will, if detected, lead to the University commencing proceedings against me for potential student misconduct under the University of Sydney (Student Discipline) Rule 2016.

admin

Author admin

More posts by admin