a3 - York University EECS 3101 Homework Assignment#3 Due...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
York University EECS 3101 September 24, 2015 Homework Assignment #3 Due: October 1, 2015 at 4:00 p.m. 1. Bob Fnord is the mayor of a large city that is building a subway, which will be n metres long. One day, he was looking at the subway plans in his office. The plans include a list of numbers that give the elevation (in metres above sea level) for each location along the track. Bob types those numbers into an array A [0 ..n ] so that A [ i ] gives the elevation of the point on the track that is a horizontal distance of i metres from the southern end. (Thus, A [0] is the elevation of the south end of the track and A [ n ] is the elevation of the north end of the track.) Assume that the track rises or falls along a straight line between the elevations of A [ i - 1] and A [ i ] along the i th metre of the track. Bob also has the contract from the manufacturer of the subway trains. It says that the subway trains can never travel on a track whose slope is greater than 0.1 at any point.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern