wes d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
..
README.md d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
code.cpp d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
unitTest.cpp d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos

README.md

Is the Word Singular or Plural?

by Helen Yu tags: strings, validation, conditions

Summary

Create a function that takes in a word and determines whether or not it is plural. A plural word is one that ends in "s". Examples isPlural("changes") ➞ true isPlural("change") ➞ false isPlural("dudes") ➞ true isPlural("magic") ➞ false Notes Don't forget to return the result. Remember that return true (boolean) is not the same as return "true" (string). T

Instructions

Create a function that takes in a word and determines whether or not it is plural. A plural word is one that ends in "s".

Examples

isPlural("changes") ➞ true

isPlural("change") ➞ false

isPlural("dudes") ➞ true

isPlural("magic") ➞ false

Notes

  • Don't forget to return the result.
  • Remember that return true (boolean) is not the same as return "true" (string).
  • This is an oversimplification of the English language. We are ignoring edge cases like "goose" and "geese", "fungus" and "fungi", etc.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.