#include #include using namespace std; void Incrementcounter(int&); void Report(int, double); void Report(double); void Report(int ); int main() { int a,b; double sum; ifstream input; //open text file for reading input.open("input.txt"); //initialize values b=0; // b counts the number of integers read from file sum=0; //sum of the integers in the file while (input>>a){ Incrementcounter(b); //Increment the value of b by 1 sum +=a; //add current value of a to sum Report(a,sum); /** Write to console the message "Read a; sum became (new sum value)" */ } Report(b); /** Write to console the number of integers read: "Read a total of (number) integers" */ Report(sum); /** Write to console the final sum in the form "The sum of all integers in your file is : (value)" */ } void Incrementcounter(int& a){ a++; } void Report(int a, double sum){ cout<< "Read " << a<<"; sum became "<< sum<