/*------- Signature: say_sound: string string -> void Purpose: expects an animal name and its desired animal sound, and RETURNS NOTHING, and has the side effect of printing that that animal says that sound to the screen Examples: say_sound("cow", "oink"); ...has the side effect of printing: The cow says, "oink". ... to the screen. say_sound("raccoon", "screech"); ...has the side effect of printing: The raccoon says, "screech". ... to the screen. by: Sharon Tuttle last modified: 2016-11-01 --------*/ #include <cstdlib> #include <iostream> #include <string> #include <cmath> using namespace std; void say_sound(string animal, string animal_sound) { cout << ("The " + animal + " says, \"" + animal_sound + "\".") << endl; }