CMSC104Problem Solving and Computer ProgrammingSection 0501 |
You are a research marine biologist in Alaska, and you are studinyg salmon fish. You have to collect data on the weight each fish and then determine the weight of the heaviest and lightest fish and their average weight.
You must make sure that the user enters a number of fish that is greater than zero. Also the weights must be greater than zero. If the weight is 40 pounds and 8 ozs, the weight should be entered as 40.5 pounds.
Remember, no fish are to be hurt as a result of this study.
How many salmon are in the sample: 4 Enter the weight of fish #1: 43.5 Enter the weight of fish #2: 53.8 Enter the weight of fish #3: 53.85 Enter the weight of fish #4: 26.1 The number of salmon in the sample was 4 The average weight for the sample was 44.31 The heaviest salmon was 53.85 The lightest salmon was 26.10
When submitting the assignment, I only want the file jdoe2p2.c. Please make the title and the file name the same when you submit it! If you submit a file named jdoe2p2.c, the way we save the material delete everything but the last file with than name. Therefore, your file will be lost and we will give you a zero!!!! Use your login ID!!!
Documentation | 25 points |
Correct Results | 25 points |
Correct Sytle | 25 points |
Other | 25 points |
You will lose 5 points if you do not name the file correctly.
You will lose 5 points if you email the project instead of submitting
it via Blackboard.
You will lose 5 points if the prompt is not on the next line.
/*****************************************************/ /* Program Header Block */ /* Filename: jdoe2p2.c */ /* Name: Ima Student */ /* Email: jdoe2pl@umbc.edu */ /* Date: 14 Mar 2005 */ /* Course/section: CMSC-104/0501 */ /* Description: */ /* Analysis: */ /* Input: */ /* Output: */ /* Constraints: */ /* Formulas: */ /* Assumptions: */ /* Design: */ /* (Your psuedocode goes here.) */ /* */ /* Notes: (As needed.) */ /*****************************************************/