(Assignment for Quality check)

((Assignment for Quality check))QUESTION:’m looking for help in school assignment. https://cs.anu.edu.au/courses/comp1730/assessment/project/ This is the page that I have to solve, and I just need to finish Question 4. I need full answer of the code today.You need this question only-
Generally people catch buses because they want to go somewhere. Write a function find_path(stops, routes, stop_a, stop_b) that takes two bus stops and determines what buses to take to get between these stops; this may involve changing buses. The function should return a journey, as described in Question 2. Your function should be efficient.
We have provided an outline of this function in the assignment template:
def find_path(stops, routes, stop_a, stop_b):
return
For example, say you wanted to go from City West Marcus Clarke St to Old Bus Depot Markets Wentworth Av:

find_path(bus_stops, bus_routes, bus_stops[533], bus_stops[851])
[(‘7 Weston Creek’, ‘City West Marcus Clarke St’, ‘City Interchange Plt 4’),
(‘7 Weston Creek’,
‘City Interchange Plt 4’,
‘London Cct opp Legislative Assembly’),
(‘6 Woden’,
‘London Cct opp Legislative Assembly’,
‘Regetta Point Commonwealth Av’),
(‘6 Woden’,
‘Regetta Point Commonwealth Av’,
‘National Library King Edward Tce’),
(‘6 Woden’,
‘National Library King Edward Tce’,
‘John Gorton Building Parkes Pl’),
(‘6 Woden’, ‘John Gorton Building Parkes Pl’, ‘Barton Bus Stn Plt 2’),
(‘6 Woden’, ‘Barton Bus Stn Plt 2’, ‘Brisbane Av after Macquarie St’),
(‘182 Lanyon’,
‘Brisbane Av after Macquarie St’,
‘Old Bus Depot Markets Wentworth Av’)]
In this example, the journey includes also intermediate stops, where there is no change of bus.Expert can use these files to write a code-458491_637071544678751963_bus-stops.csv
458491_637071544680314307_project-1-.py
458491_637071544680782901_bus-routes.csvAdditionally, make sure to the expert that he has to read the instructions carefully about whole page and about the question 4, there is an example code. If he finish writing the code, he need to test about the example code is it all right.Student’s message- Write a function find_path(stops, routes, stop_a, stop_b) that takes two bus stops and determines what buses to take to get between these stops; this may involve changing buses. This is the question, your answer doesn’t involve changing buses.Tutor’s reply- if you are getting a path that does not involve changing buses and it is fastest too, Why would you need the path which involve changing buses. It is not necessary.
You function description says it “may” involve changing buses not always.Student’s response- however it must involve these cases. For example, find_path(bus_stops, bus_routes, bus_stops[2178], bus_stops[1957]) have to show the path changing bus number 28 to 27 but your answer shows error. Of course if it not necessary to change the bus number, it doesn’t need to change. But there are some cases it must have to change. I think you can definitely understand what I’m talking about.

Leave a Reply

Your email address will not be published. Required fields are marked *