// // Title: program or function name // // Author: Your_Name(s) // using code from: The Art of Computer Programming, by // Donald Knuth (for example) // (if the author does not change, include this only in the // first function of the file) // // return_type function_name (formal_parameters) // // Description of the role or purpose of this function goes here. // (i.e., WHAT does this function do? - not "HOW does it do it") // // Precondition: // Describe the input that this function acts on, both input // parameters and outside input from the user or from a file. // Include any program data that has to be present // for the function to work. // // Postcondition: // Describe the output that this function generates, both the // return value and output written to the console or to a file. // Especially discuss any parameters that are reference - why // are they reference? how are they changed? // // Implementation: // Describe the algorithm the function uses. (i.e., HOW does this // function work?) // // include files go here (lines included below just an example) #include #include // for sqrt function // function definition goes here return_type function_name (formal_parameters) { }