Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Exercise 4-2. The point of this exercise is to make sure you understand how

ID: 3750988 • Letter: C

Question

C++
Exercise 4-2.
The point of this exercise is to make sure you understand how to write and call functions that take parameters.
Write the first line of a function named zool that takes three parameters: an int and two strings. Write a line of code that calls zool, passing as arguments the value 11, the name of your first pet, and the name of the street you grew up on. C++
Exercise 4-2.
The point of this exercise is to make sure you understand how to write and call functions that take parameters.
Write the first line of a function named zool that takes three parameters: an int and two strings. Write a line of code that calls zool, passing as arguments the value 11, the name of your first pet, and the name of the street you grew up on.
Exercise 4-2.
The point of this exercise is to make sure you understand how to write and call functions that take parameters.
Write the first line of a function named zool that takes three parameters: an int and two strings. Write a line of code that calls zool, passing as arguments the value 11, the name of your first pet, and the name of the street you grew up on. Exercise 4-2.
The point of this exercise is to make sure you understand how to write and call functions that take parameters.
Write the first line of a function named zool that takes three parameters: an int and two strings. Write a line of code that calls zool, passing as arguments the value 11, the name of your first pet, and the name of the street you grew up on.

Explanation / Answer

#include<string>
using namespace std;
void zool(int n, string s1, string s2) //function zool with parameters
{

}

int main()
{
zool(11, "Charlie", "Charleston Boulevard"); //calling of the function zool
return 0;
}

//the above code forms a complete c++ program. The bolded text in the code is the precise solution for your question.

//any query, post in the comment section