Ok, so here it goes. I'm awful at C++. I can't seem to really grasp it on my own and have talked to a lot former C++ students in hopes that I will learn something but that has yet to happen... I understand math pretty well, can't say that about coding however. With that being said, can someone explain to me how to obtain the average per row and the total average? Also the highest amount and the lowest amount.
Directions are: Write a program that stores this information in a 2D 3 x 7 array, where each row represents a different monkey and each column represents a different day of the week. The program should first have the user input the data for each monkey. Then it should create a report that includes the following information:
1) Average amount of food eaten per day by the whole family of monkeys
2) the least amount of food eaten during the week by any one monkey
3) the greatest amount of food eaten during the week by any one monkey
*input validation: Do not accept neg numbers for pounds of food eaten
Sum all values in single row and divide it by amount of columns
and the total average
Sum all values and divide it by amount of rows × amount of columns
Also the highest amount and the lowest amount.
Store first value in a row in current highest/lowest variable. Then iterate over other values in a row comparing them with your current variable and replacing it if value is larger/lower than stored.