Question: Prepare an algorithm to calculate the mean, median and mode for the values below: A # 5,8,9,11,6,6,2,4,8,10 B # Complete the algorithm: i. Summary of
Prepare an algorithm to calculate the mean, median and mode for the values below:
A # 5,8,9,11,6,6,2,4,8,10
B # Complete the algorithm:
i. Summary of problem state (Re-write problem statement)
ii. Known/Input (List all input variables, either given in the problem statement or that will be collected through user input include units!
iii. Unknown output (What Is the final result we are solving for? in what units? What format (number, text) is required?
iv. Assumptions (What other facts or equations do I need to solve the problem? What constant can I set? Be sure to include gravity and density of water as assumptions. These should be set as variables)
v. Other variables (What intermediate variables do I need, what are their values if known or how will I determine them? Units?
vi. Algorithm
o What is the process in need to write in my code?
o Include all steps needed input/ assumptions / equation solution / more conversions
o Each block should become a line of code in the program.
o Do not lump all commands into single box.
o Be sure to distinguish between calculations and conversions
o Be sure to SET any assumptions before you need them in your calculations
o Keep all conversion factors as individual numbers and do not lump them into a single factor to make troubleshooting easier.
vii. Test cases (list one test case for each process or decision in the algorithm. Work out the final answer, including intermediate values and units, by hand to test your program. How will you know your program is working correctly?
C # Develop and document the Flow Chart form of algorithm by using proper rules of Flowcharting?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
