about | help | code help+videos | done | prefs |
Write a method that returns the name of the book about hobbits as indicated in the test data. Any integer from 0 to 4 should return the indicated book title. Any other integer will cause the method to return "N/A". Make sure you start by looking at the test data by running a dummy method that just returns any string. hobbit2(0) → "The Hobbit" hobbit2(1) → "The Lord of the Rings" hobbit2(2) → "The Two Towers" ...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: 250
Copyright Nick Parlante 2017 - privacy