- Write a function called
cowSounds
that prints "Cows go MOOOO!" - Write a function called
dogSounds
that prints "Dogs go WOOOF!" - Write a function called
duckSounds
that prints "Ducks go QUACK!" - Write a function called
whatSound
that accepts a single paramete. If that parameter idCow
it should run thecowSounds
function. If the parameter isDog
it should run thedogSounds
function. If the parameter isDuck
it should run theduckSounds
function. For any other input, it should display "I am not sure what noise that animal makes"