Puffin length

Challenge
No

Puffin
A puffin

Download a file with data on the length of puffins. Here are the first few records:

  • "Name","Length"
  • "Roderick",26
  • "Junie",24.8
  • "Bea",29
  • "Rodney",26

The minimum puffin length is 24 cm. Values below that are invalid. Values above 50 cm are invalid, too.

Most puffins are between 24 cm and 34 cm in length. Puffins lengths larger than 34 cm are mutants, possibly with superpowers. For example, the infamous super-villain The Dart was a mutant puffin. She sank 18 ships in the Atlantic before being taken out by Seal Team 3.

Seal Team 3
Seal Team 3

Write a program that computes statistics for regular and mutant puffins. Use the statistics module, and at least two functions (I used three).

Here's what the report should look like:

  • Puffin Lengths
  • ====== =======
  •  
  • Normals: no super powers
  • Count: 41
  • Mean: 29.01
  • Standard deviation: 3.14
  •  
  • Mutants: might have super powers
  • Count: 3
  • Mean: 38.23
  • Standard deviation: 0.75

- - CUT SCREEN HERE - -

At one point, I put the wrong version of the data file in this exercise. Here's the output from that. Either one will count as correct.

  • Puffin Lengths
  • ====== =======
  •  
  • Normals: no superpowers
  • Count: 37
  • Mean: 28.93
  • Standard deviation: 3.29
  •  
  • Mutants: might have superpowers
  • Count: 7
  • Mean: 38.16
  • Standard deviation: 1.34
  •  
  • Urgent! Send this report to Seal Team 3

- - CUT SCREEN HERE - -

Round to two decimal places.

Show the Seal Team 3 warning if there are more than five mutants.

Upload a zip of your project folder. The usual coding standards apply.

Attachments
Where referenced