This sample output file was updated 18 Oct 1999, 9:52 am to accurately reflect the sample executable hw2.exe provided on the previous web page. Note that programs compiled and run on non-Windows platforms (e.g. Linux with gcc, MacOS) might produce numbers that are off by one minute. We will not deduct credit for computation correctness if your code is correct, as long as the figures it prints are within a minute of what the sample executable prints. To make verifying your calculations easier, notes in square braces have been added to indicate where a bridge delay time was added due to a raised bridge. Your program does not have to output these notes. ---------------------------------------------------------------------- Ken Yasuhara, student number 1234567 The am rush hour period is from 07:00 to 08:30, and the pm rush hour period is from 17:00 to 18:15. Please enter data for the first part of your trip. starting time in minutes past midnight: 515 distance in miles: 13.2 bridge probability: .87 start time: 08:35 est. travel time: 00:59 [bridge was up] end time: 09:34 Please enter data for the second part of your trip. distance in miles: 5.8 bridge probability: .2 start time: 09:34 est. travel time: 00:19 end time: 09:53 total distance: 19.000 total travel time: 01:18 Press Enter to end. ---------------------------------------------------------------------- Ken Yasuhara, student number 1234567 The am rush hour period is from 07:00 to 08:30, and the pm rush hour period is from 17:00 to 18:15. Please enter data for the first part of your trip. starting time in minutes past midnight: 670 distance in miles: 16.2 bridge probability: .2 start time: 11:10 est. travel time: 00:53 end time: 12:03 Please enter data for the second part of your trip. distance in miles: .3 bridge probability: .4 start time: 12:03 est. travel time: 00:16 [bridge was up] end time: 12:19 total distance: 16.500 total travel time: 01:09 Press Enter to end. ---------------------------------------------------------------------- Ken Yasuhara, student number 1234567 The am rush hour period is from 07:00 to 08:30, and the pm rush hour period is from 17:00 to 18:15. Please enter data for the first part of your trip. starting time in minutes past midnight: 1010 distance in miles: 4.5 bridge probability: .2 start time: 16:50 est. travel time: 00:15 end time: 17:05 Please enter data for the second part of your trip. distance in miles: 9.2 bridge probability: .6 start time: 17:05 est. travel time: 00:56 [bridge was up] end time: 18:01 total distance: 13.700 total travel time: 01:11 Press Enter to end.