// FILE: SmStubDr.cpp // DRIVER FOR STUB "compute_sum" #include // Functions Used... // COMPUTES SUM OF DATA - stub double compute_sum (int); // IN: number of data items // Driver (Not included in the text) int main () { // Local Data... int num_items; double result; // Read in the Number of Items cout << "Enter the Number of items to be added > "; cin >> num_items; // Add 'num_items' together result = compute_sum (num_items); // Print the Sum cout << endl << "The sum is " << result << endl; return 0; }