Question: Problem 4: Filling in a program design (15 points) Your hard drive died, and a helpful technical professional restored what data she could. Unfortunately,

Problem 4: Filling in a program design (15 points) Your hard drive

Problem 4: Filling in a program design (15 points) Your hard drive died, and a helpful technical professional restored what data she could. Unfortunately, a key piece of code in your data analysis pipeline was corrupted - you only have your original notes to go on, as represented by the comments below. Write the missing lines of code. # Just some placeholder data - the real data was corrupted and we're getting a backup copy later, # but this will let us run the code without errors. Change the values as needed to test. plant_measurements = [4.0, 7.0, 6.0, 10.0, 8.0] ## MISSING: ## MISSING: ## MISSING: # if plant measurements is an empty list, print an error message (and skip the rest of the code) print the three smallest measurements, all on one line, separated by spaces if the two smallest plants are below 5.0, or the smallest is below 2.0, print a warning that the specimens are too unhealthy. Else print "ok"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!