|
Mrs. Ruiz-Houston
|
|
|
Computer Competition Level 2 Question #2.1 2.0 When investigating a traffic accident, police officers often need to estimate how fast a car was traveling by measuring the length of the skid marks. The formula
Prompt the user for the length of the skid mark. The output should indicate the approximate speed of a car that left skid marks, rounded to the nearest whole number. (Input values will be 1 foot or greater. Format: Length of the skid marks (in feet) = ? Approximate Speed (in miles per hour) = ? Example: Length of the skid marks (in feet) =111 Approximate Speed (in miles per hour) = 52 RUN / OUTPUT: Length of the skid marks (in feet) =40 Approximate Speed (in miles per hour) = 31 Length of the skid marks (in feet) =10 Approximate Speed (in miles per hour) = 15 Length of the skid marks (in feet) =157 Approximate Speed (in miles per hour) =61 RE-TRY: Length of the skid marks (in feet) =157 Approximate Speed (in miles per hour) = 61 Length of the skid marks (in feet) =75.7 Approximate Speed (in miles per hour) = 43 Length of the skid marks (in feet) =1 Approximate Speed (in miles per hour) =5 |