Question: QUESTION 3 (a) Write a function find_min() which takes three floating-point numbers x,y and z as the arguments, and which return the minimum value to

 QUESTION 3 (a) Write a function find_min() which takes three floating-point

QUESTION 3 (a) Write a function find_min() which takes three floating-point numbers x,y and z as the arguments, and which return the minimum value to the main() function [7 marks] (b) Given an incomplete C programming code in Figure Q3(b). Complete the given code in order to find minimum value of three variables by invoking the function find_min () which had been defined in Q3(a) and to display the calculation results as the output. #include //complete the code here int main() { float varl - 5.3; float var2 = 9.1; float var3 = -2.1; float max; 1 2 3 mouw 6 7 8 9 10 11 12 //complete the code here return 0; } Figure Q3(b) [6 marks] (c) Based on answers in Q3(a), rewrite the definition for the find_min() function so that it will take three pointers of the floating-point numbers as the arguments and return a pointer of a floating-point number [4 marks) Develop a C program which will assign the following values to an array and then display them, by using a single while() loop. 0 1 2 3 4 5 6 7 [8 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!