Following the Ketchup Ooze¶
Let’s compute how long it would take ketchup to ooze down a table. Imagine that you tilted a four foot table, and poured ketchup at the top. How long would it take to get to the bottom of the table? We’re going to ignore physics and the angle of the table, and just start from the average speed of ketchup as .028 miles per hour.
The next type of problem is new. It shows correct code in code blocks on the left side, but the order is mixed up. You need to drag the blocks to the right side in the right order. Please watch the video below for a demonstration.
Click on the right arrow below to play the following video.
csp-3-6-3: The following program figures out the ketchup speed in feet per seconds. Drag the blocks from the left and put them in the correct order on the right. Click the Check Me button to check your solution.dripMPH = .028 FPM= 5280.0 dripFPH = dripMPH * FPM --- MPH = 60 dripFPM = dripFPH / MPH --- SPM = 60 dripFPS = dripFPM / SPM --- print("Ketchup speed:") print(dripFPS)
Discuss topics in this section with classmates.