Course Solutions Uncategorized (Solved) : Consider Following Code Segment Int Main Cons Int Size 20 Int Values Size F0 23 34 7 110 4 Q27757632 . . . .

(Solved) : Consider Following Code Segment Int Main Cons Int Size 20 Int Values Size F0 23 34 7 110 4 Q27757632 . . . .

 

Consider the following code segment: int main() cons int SIZE -20; int values [SIZE] - f0, 23, 34, -7, 110, 42,-350, 424, 25, 99, 10, 05, 50, -5, 1, 200, -350, 437, 25, 147}; // your code goes here Write a complete program to display the values from each of the following four steps All displays must be done in main. Use separate functions for each step below, passing the array to each function. 1.1) Provide the sum of the numbers in this array - function must return an int. 1.2) Provide the average of the positive numbers in this array - function must return a double. 1.3)Provide the lowest number in the array -function must return an int. 1.4) Provide the highest number in the array - function must return an int.

Consider

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post