Write a function definition called, sigma, that takes an input file reference and two integer references as its parameters. The function should read the numbers from a file, calculate their total value (cumulative sum), find the largest, and smallest numbers in the file. The function should return the cumulative sum, the largest, and the smallest values to the calling function. Note: the function reads the entire file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here