/* ===================================================== * Driver program for precision-driven Rect Rule * ===================================================== */ #include int main(int argc, char *argv[]) { float a, b, EPS, result; extern float f(float); extern float RectangleRule_Prec(float(float), float, float, float); cout << "Enter start of interval: "; cin >> a; cout << "Enter end of interval: "; cin >> b; cout << "Enter precision EPS: "; cin >> EPS; result = RectangleRule_Prec(f, a, b, EPS); cout << "\nResult = " << result << "\n\n"; return(0); }