code in c assignment

We're the ideal place for homework help. If you are looking for affordable, custom-written, high-quality and non-plagiarized papers, your student life just became easier with us. Click either of the buttons below to place your order.


Order a Similar Paper Order a Different Paper

There are two parts to this assignment, though not connected, but should be implemented in the same file to simplify.

1. Write code for a function that receives two parameters (a,and b) by value and 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). The function has no return value.

From main, use scanf to get two numbers, then call the function, and then display both outcome 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 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 an array for this.

b. use a pointer to calculate the average of the numbers entered into the array of part a above, in another loop.

c. write a function, then pass the array, its size, and the average to that function. The function arguments would be a pointer to int, an int, and a float and it returns the count of the number of elements that are above the average.

Writerbay.net

Do you need academic writing help? Our quality writers are here 24/7, every day of the year, ready to support you! Instantly chat with a customer support representative in the chat on the bottom right corner, send us a WhatsApp message or click either of the buttons below to submit your paper instructions to the writing team.


Order a Similar Paper Order a Different Paper
Writerbay.net