1. write a function that will take input and array and return the minimum value of the...
Fantastic news! We've Found the answer you've been seeking!
Question:
1. write a function that will take input and array and return the minimum value of the array, the maximum value of the array, and average of the array respectively. After the user enters the values of the array, use the functions to compute the min, max, and average of the array values.
2. Write a function that takes a string as an argument and removes the spaces from the string. Test it in a program that uses a loop to read lines until you enter an empty line. The program should apply the function to each input strong and display the result.
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: