about | help | code help+videos | done | prefs |
Write a method called "fancyCats" that returns the overall rating a cat would earn at a cat show. The overall rating is based on the individual ratings of the fur quality and the cuteness factor. In the overall rating, cats earn zero points if their fur is rated less than 10, 1 point if their fur is 10 or more but less than 20, and 2 points if their fur is rated 20 or more. Additional points are added to the overall rating for each point the cuteness factor is above 15. For example, the overall rating goes up by 1 additional point if the cuteness factor is 16. For a cuteness factor of 20, the overall rating gets an additional 5 points. You may assume that the input parameters fur and cuteness will both be non-negative. fancyCats(12, 6) → 1 fancyCats(19, 16) → 2 fancyCats(19, 17) → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 110
Copyright Nick Parlante 2017 - privacy