Answer to Question #37447 in C++ for Mohammed shabib
1. The total has exceeded 5555.
2. The end of file has been reached.
using namespace std;
int main(int argc, char const *argv)
int total = 0,
max = 0;
while ((!input.eof()) && (total < 5555))
input >> temp;
total += temp;
if (temp > max)
max = temp;
cout << "Total: " << total << endl;
cout << "Maximum: " << max << endl;
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!