Fixnearzerodata | Computer Science homework help
Part 1: Write a function called fixNearZeroData that finds the items in a given list where the absolute value of the item is less than or equal to a specified positive value (a “tolerance”) and replaces each of these values with zero. The function should take an argument of type list as its first parameter; the second parameter is the positive float value representing the tolerance. You can assume that all items in the list are of type float. The function should do two things: (1) modify the original list of values by replacing these near zero values, and (2) the function should also return an integer that represents the number of values that were changed.
Part 2: Execute your code sufficiently (i.e., with different input values) to demonstrate that it works sufficiently for both positive and negative values near zero
Execute your code sufficiently (i.e., with different input values) to demonstrate that it works sufficiently for both positive and negative values near zero Noon tomorrow