lab09 - Lab 9: Traffic Analysis Last Modified 02/15/2009...

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

View Full Document Right Arrow Icon
Lab 9: Traffic Analysis Last Modified 02/15/2009 Key Concepts: for loops, nesting structures Suppose you're analyzing the traffic flow on a given road and you have access to traffic flow data readily available. This data is in the form of how fast traffic was moving through a given point on the road at the given date and time. We'll classify traffic flow data using the the three color classifications Google Maps uses for traffic data (according to this Help page on 7/29/2008): Green: traffic moving faster than 50 m.p.h. Yellow: traffic moving between 25 and 50 m.p.h. Red: traffic moving slower than 25 m.p.h. Suppose your data is available for 100 days and is recorded by date and a day number from 0 to 99. September 3, a Wednesday, is day 0. Because traffic patterns vary from weekends to weekdays, we want to look only at traffic data on Wednesdays. Write a program that prompts the user for the speed of traffic recorded during each Wednesday's observation. Count how many observations fall into each of the
Background image of page 1

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

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

This document was uploaded on 02/10/2011.

Page1 / 2

lab09 - Lab 9: Traffic Analysis Last Modified 02/15/2009...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online