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

Write the corresponding statement (s) for each expression. Write the function pr

ID: 673021 • Letter: W

Question

Write the corresponding statement (s) for each expression. Write the function prototype for a void function named yellowBox that takes four (4) int parameters. Assume the function named square, which is a int function that takes one) int parameter, is defined. Write the statement that will call square with argument 5 and assign it to an int variable named z that has already been declared. Write the function prototype for a float function named sqrt that takes one float parameter. Write the statement that calls a void function named squarePattern that takes three int variables, the x-coordinate and y-coordinate of the upper-left hand corner and the length of the side. Use whatever values your like. Write the function prototype for a void function named darwTriangle that takes six int parameters.

Explanation / Answer

(a) void yellowBox(int a,int b,int c,int d);

(b) int z;
   z = square(5);

(c) float sqrt(float number);

(d) int x=2,y=4,length=20;
   squarePattern(x,y,length);

(e) void darwTriangle(int a1,int a2,int a3,int a4,int a5,int a6);