Challenge
No
Zilo is a self-proclaimed Zen master. Goat Zen is nothing like human Zen. Goat Zen is about purity-of-hide. Why? Zilo says it came to him in a divine dream.
Anyway, write a program to compute a goat's Zen rating, based on the number of tattoos they have. Here's how it works.
Tattoos | Rating |
---|---|
0 | 5 |
More than 0, less than 4 | 4 |
4 or more, less than 8 | 3 |
8 or more, less than 14 | 2 |
14 or more | 1 |
Here's what it starts like:
The user puts in a number of tattoos, and clicks the button. Sample output:
More:
Yes, there is a goat with 522 tattoos. Blotto, Nanny of the Ink.
Upload your workbook. The usual coding standards apply.
If you were logged in as a student, you could submit a solution to this exercise.
Where referenced