COSC 341 FALL 2017 HomeWork hw0907.txt C Exercises - simple Distributed: 9/7/2017 Due: 9/19/2017 Each of the following will be placed in a separate C file. All C source files must be uploaded to your web space, and the URL included in the header. Each of the following must include hard copy of code with sample run on the indicated input values. /************************************************************************/ 1. Hard code a 1D int array. Output the values that are even. E.g., For array [1, 3, 2, 4, 5, 6, 2], output 2 4 6 2 /***********************************************************************/ 2. Hard code a 1D int array. Sum the elements at an even index. Output the sum. E.g., for array [1, 3, 2, 4, 5, 6, 2], output 10 (this is 1 + 2 + 5 + 2) /***********************************************************************/ 3. Query the user for three integer values. output the median value. E.g., Enter value: 3 Enter value: -1 Enter value: 15 Median: 3 /***********************************************************************/ 4. Modify #3, so the input is given as run-time values. /***********************************************************************/ 5. Given a list of run-time integer values, output how many are even. The program should work on any number of run-time values. E.g., a.out 3 5 7 8 8 8 2 100 1 output: 5 /***********************************************************************/ Turn in: Hard copy and sample run for each exercise. Grade based on: (1) Works (must work on any valid input) (2) Follows specs (3) Style