CSC105SU2021Method2

From BU Computer Science
Jump to navigation Jump to search

Second Method assignment

Choice 1

Adapt the previous choice 1 program to print out the users that exceed a threshold inputted by the user. The function should return a array instead of just the number.


Supplemental: Write a program that prints out all numbers that are at 1 standard deviation away from the average. It should only read the file once. One function should read the data. Another function should compute the average. A third function should compute the standard deviation. The last function should return a arary of numbers that are at least one standard deviation away from the average.