Question: Write a C program that includes the following: 1. (3 points) A function that counts the multiples of 5 in the array and returns the
Write a C program that includes the following:
1. (3 points) A function that counts the multiples of 5 in the array and returns the result, with the following prototype:
int MultipleOf_5_Values(int *a , int size);
2. (5 points) A function that finds the sum of prime numbers in array a and returns the result, with the following prototype:
int Sum_Of_Prime_Values ( int *a , int size);
3. (4 points) The main function that:
-Declares two integers named m and d as well as an integer array named ArrayofIntegers that contains 20 elements.
-Reads ArrayofIntegers from the keyboard.
-Calls MultipleOf_5_Values to count the multiples of 5 in ArrayofIntegers and saves the result in m.
-Calls Sum_Of_Prime_Values to find the sum of prime values in ArrayofIntegers and saves the result in d.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
