123456789101112131415161718192021222324
#include <iostream> #include <fstream> #include<iomanip> #include <string> using namespace std; const int NUM_MONKEYS = 3; const int NUM_DAYS = 7; int main() { int poundsOfFood[NUM_DAYS]; string monkeyName[NUM_MONKEYS]; ifstream fin("monkeyData.txt"); if(!fin){ cout<<"Error opening file. \n"; return 1;} int namecount = 0, intakecount = 0; while }