Question
Please write the Algorithm Consider making a function (mini program to complete a specific task) for each of the scenarios below. State what the purpose
Please write the Algorithm
Consider making a function (mini program to complete a specific task) for each of the scenarios below. State what the purpose of the function is in your own words, specify input that is needed by the function, what output is expected from the functions, and the step by step process that will obtain the output from the input (the algorithm). In addition to these 4 items also specify test data that can be used for each problem. Remember to describe your steps in enough detail so someone other than you could follow your algorithm and solve the problem. Also do not write any actual code. However as you list the steps, you may want to employ statements such as repeat steps 2-4 until n is reached.
1. Create a process that would sum up all the values in a column of a 2-dimensional array or list (do not use any python functions).
2.Create a process that would find the average of a 2-dimensional of all the values in a 2-dimensional array or list (do not any python functions).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started