Question
Write a C program that includes the following: 1. (3 points) A function that finds the product of the maximum value in array a and
Write a C program that includes the following:
1. (3 points) A function that finds the product of the maximum value in array a and the maximum value in array b then returns the result, with the following prototype:
int Product_Maximum (int *a , int *b , int size);
2. (5 points) A function that multiplies each element of array a by the corresponding element in array b and sums all the products then returns the result, with the following prototype:
int Sum_Of_Products (int *a , int *b, int size);
3. (4 points) The main function that:
-Declares two integers named Promax and Sumproduct as well as two integer arrays named ExperimentArray1 and ExperimentArray2 which both contains 45 elements.
-Reads ExperimentArray1 and ExperimentArray2 from the keyboard.
-Calls Product_Maximum to find the product of the maximum value in ExperimentArray1 and the maximum value in ExperimentArray2, then saves the result in Promax.
-Calls Sum_Of_Products with ExperimentArray1 and ExperimentArray2, then saves the result in Sumproduct.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started