Question: Im having trouble with this assignment You will write a function to accept a set of options and a list of numbers and computes some
Im having trouble with this assignment You will write a function to accept a set of options and a list of numbers and computes some basic statistics regarding the numbers You will write a program capable of computing the following: 1. Largest item 2. Smallest item 3. Arithmetic mean Mean (average) mean - sum(items in list) / number of items in list Options -1 corresponds to computing the largest item -s corresponds to computing the smallest item -m corresponds to computing the mean -all corresponds to computing all of the above These options may be specified in any order, but you can expect them to occur before the list of numbers. Note that-l -s -m is equivalent to-all . You will write a function to accept a set of options and a list of numbers and computes some basic statistics regarding the numbers You will write a program capable of computing the following: 1. Largest item 2. Smallest item 3. Arithmetic mean Mean (average) mean - sum(items in list) / number of items in list Options -1 corresponds to computing the largest item -s corresponds to computing the smallest item -m corresponds to computing the mean -all corresponds to computing all of the above These options may be specified in any order, but you can expect them to occur before the list of numbers. Note that-l -s -m is equivalent to-all
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
