Declare (give a prototype for) a function named average_grade. This function returns a double and has four double arguments, test1, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments. Be sure to include a "prototype comment" that tells briefly what the function does.

What will be an ideal response?


//returns arithmetic mean of the arguments test1 - test4
double average_grade (double test1, double test2,
double test3, double test4);

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. A queue is first-in-first-out data structure. 2. Most applications that use a stack will store a struct or class object on the stack.

Computer Science & Information Technology

Input an integer and assign the result to int variable value. Assume Scanner variable input can be used to read a value from the keyboard.

What will be an ideal response?

Computer Science & Information Technology

Which type of binary tree traversal traverses the left subtree, visits, the root node, and traverses the right subtree?

A. postorder traversal B. inorder traversal C. preorder traversal D. unordered traversal

Computer Science & Information Technology

__________ is a protocol that can be used to secure communications across any IP-based network such as LANs, WANs, and the Internet.

A. PEM B. SSH C. IPSec D. SET

Computer Science & Information Technology