Advertisement
Guest User

dinosaur

a guest
Sep 18th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. # Given the following formula,
  2. #
  3. # speed = ((STRIDE_LENGTH / LEG_LENGTH) - 1) * SQRT(LEG_LENGTH * g)
  4. # Where g = 9.8 m/s^2 (gravitational constant)
  5. #
  6. # Write a program to read in the data files from disk, it must then print the names
  7. # of only the bipedal dinosaurs from fastest to slowest. Do not print any other information.
  8.  
  9. # $ cat dataset1.csv
  10. # NAME,LEG_LENGTH,DIET
  11. # Hadrosaurus,1.4,herbivore
  12. # Struthiomimus,0.72,omnivore
  13. # Velociraptor,1.8,carnivore
  14. # Triceratops,0.47,herbivore
  15. # Euoplocephalus,2.6,herbivore
  16. # Stegosaurus,1.50,herbivore
  17. # Tyrannosaurus Rex,6.5,carnivore
  18.  
  19. # $ cat dataset2.csv
  20. # NAME,STRIDE_LENGTH,STANCE
  21. # Euoplocephalus,1.97,quadrupedal
  22. # Stegosaurus,1.70,quadrupedal
  23. # Tyrannosaurus Rex,4.76,bipedal
  24. # Hadrosaurus,1.3,bipedal
  25. # Deinonychus,1.11,bipedal
  26. # Struthiomimus,1.24,bipedal
  27. # Velociraptorr,2.62,bipeda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement