Ecology of a Reservoir

Scientists have sampled the weights of fish from a local reservoir (human made lake). All units are in grams.

   226 223 233 244 224 235 238 244 222 239 233 243 
   221 230 237 240 225 230 236 242 222 235 237 240 
   220 235 238 243 222 232 232 242 
 

They have determined that the if the avergae weight of the fish is less than 250 grams, that the population is not growing well enought and that they will have trouble properly reproducing. Also, if the maximum fish size is less than 300 grams, the fish will be unable to reproduce well.

Write a program that calculates the average and maximum values of the fish sampled. Print out both value son the screen.

Then, make two if statements to determine if the ecology of the reservior is good enough to allow the fish to reproduce or whether they are in danger of extinction in the reservior.