about | help | code help+videos | done | prefs |
Write a method called witchMPHG that accepts a string input parameter. The string input parameter will not contain any uppercase letters. For almost all input parameters the method will simply return "NOT a witch.". However, if the input parameter is any of the following strings, return "a witch!" Here are the strings which should cause "a witch!" to be returned: "wood", "small rocks", "ducks", "churches". witchMPHG("abcde") → "NOT a witch." witchMPHG("ice") → "NOT a witch." witchMPHG("small rocks") → "a witch!" ...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: 240
Copyright Nick Parlante 2017 - privacy