1-The function sum_n_avg computes the sum and the average of three input arguments and relays its results through two output parameters.a)Write a prototype for a function sum_n_avg that accepts three double-type input parameters and returns two output parameters through reference.b)Write the function definition for function sum_n_avg. The function definition is where the actual computations are performed.c)Write a function call in main () for sum_n_avg. The function call can look like below: { double one, two, three, sum_of_3, avg_of_3; printf("Enter three numbers> "); scanf("%lf%lf%lf", &one, &two, &three); sum_n_avg(__________________________________); . . . }
1-The function sum_n_avg computes the sum and the average of three input arguments and relays its results through two output parameters.a)Write a prototype for a function sum_n_avg that accepts three double-type input parameters and returns two output parameters through reference.b)Write the function definition for function sum_n_avg. The function definition is where the actual computations are performed.c)Write a function call in main () for sum_n_avg. The function call can look like below:
{
double one, two, three, sum_of_3, avg_of_3;
printf("Enter three numbers> ");
scanf("%lf%lf%lf", &one, &two, &three);
sum_n_avg(__________________________________);
. . .
}
2- Write a function definition for a function named final_grade that has a typeint input parameter called points and returns through an output parameter gradePtr the appropriate letter grade using a straight scale (90–100 is an A, 80–89 is a B, and so on). Return through a second output parameter (missedPtr) an indication of whether the student just missed the next higher grade (true for 89, 79, and so on). The function prototype must be created. The function call be called on an input of points to convert the points to letter grades and display the results.


Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images









