calcProduct() This method returns a value and it has a param…

calcProduct() This method returns a value and it has a parameter called nums that matches the data type returned from getData().  The returned value, should correspond to data type of nums.  So for instance, if nums is a float array, then the returned value should be a float.  Multiply all the values of nums together and return that product.   printResults() This method returns nothing and has the parameter product.  Parameter sum should match the returned data type of calcProduct().  In this method you will  print the message “The product of all the values is ” followed by whatever the the product is.

calcSum() This method returns a value and it has a parameter…

calcSum() This method returns a value and it has a parameter called nums that matches the data type returned from getData().  The returned value, should correspond to data type of nums.  So for instance, if nums is a float array, then the returned value should be a float.  The returned value is the sum of all the values in nums.   printResults() This method returns nothing and has the parameter sum.  Parameter sum should match the returned data type of calcSum().  In this method you will  print the message “The sum of all the values is ” followed by whatever the the sum is.