Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 586 Bytes

README.md

File metadata and controls

6 lines (6 loc) · 586 Bytes

Animal Sounds

Task

  1. Write a function called cowSounds that prints "Cows go MOOOO!"
  2. Write a function called dogSounds that prints "Dogs go WOOOF!"
  3. Write a function called duckSounds that prints "Ducks go QUACK!"
  4. Write a function called whatSound that accepts a single paramete. If that parameter id Cow it should run the cowSounds function. If the parameter is Dog it should run the dogSounds function. If the parameter is Duck it should run the duckSounds function. For any other input, it should display "I am not sure what noise that animal makes"