/* * Starter code for Assignment 1, CSC 270, Fall 99 */ #include #include "func.h" /* * Any functions should return float value */ /* * * Skeleton for Assignment 1 main program * * You may not change the starter code provided. * You may only add to it as directed in the comments. */ int main () { /* x and y values must be read and stored as floats */ /* number of intervals must be read and stored as integers */ /* Add necessary declarations */ /* Add appropriate input */ printf ("input integral range for x values, minimum x value, maximum x value\n"); /* input statement */ printf ("input integral range for y values, minimum y value, maximum y value\n"); /* input statement */ printf ("input the number of intervals in the x direction\n"); /* input statement */ printf ("input the number of intervals in the y direction\n"); /* input statement */ /* Add code to do composite quadrature for each of the three rules */ /* Report the results */ printf ("rectangle %f\n", volumeRectangle); printf ("midpoint %f\n", volumeMidpoint); printf ("trapezoid %f\n", volumeTrapezoid); return 0; }