Answered You can hire a professional tutor to get the answer.

QUESTION

There are two parts.1. Write code for a function that receives two parameters (a,and b) by value and has

There are two parts.

1. Write code for a function that receives two parameters (a,and b) by value and has

two more parameters (c and d) by reference. All parameters are double.

The function works by assigning c to (a/b) and assigning d to (a*b).

From main, use scanf to get two numbers, then call the function, and then display both returned values to the output in a printf statement.

2. After part 1 is completed, write code to get 20 integer numbers from the user. The code then displays how many of those numbers are above the numbers average. To get proper credit you must follow these steps:

a. write a for loop to fill the array with numbers from the user. Use a pointer

b. use an index to pass through all array elements to calculate the average in another loop.

c. write a function, then pass the array, its size, and the average to the function. The function returns the count of the number of elements that are above the average.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question