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

Write the function headers (only headers) for the following: A function named le

ID: 3583600 • Letter: W

Question

Write the function headers (only headers) for the following: A function named letters () that accepts four characters as parameters g1, g2, g3, g4. The function returns a character. A function named toss() that accepts two floating point parameters t1, t2 and returns a floating point value. A function called rectangles () that accepts width of four sides as integers w1, w2, w3, w4 and returns an integer. A function called mult () that accepts three numbers as double n1, n2, n3 and returns maximum as double.

Explanation / Answer

a. A function named letters() which takes 4 characters as input parameters, and returns
a character as output.
char letters(char g1, char g2, char g3, char g4)

b. A function named toss() which takes 2 float variables as input parameters, and returns
a float as output.
float toss(float t1, float t2)

c. A function named rectangles() which takes 4 integers as input, and returns
an integer as output.
int rectangles(int w1, int w2, int w3, int w4)

d. A function named mult() which takes 3 doubles as input, and returns
a double as output.
double mult(double n1, double n2, double n3)