Question: 4. Modify the program as follows: Create one single function called compare Two() to replace the myMax) and myMin() functions. The compareTwo() function takes two

4. Modify the program as follows: Create one single function called compare Two() to replace the myMax) and myMin() functions. The compareTwo() function takes two float values, V1 and V2, and returns +1 when V1 > V2, retuns 0 when V1 = V2, returns-1 when V1
 4. Modify the program as follows: Create one single function called
compare Two() to replace the myMax) and myMin() functions. The compareTwo() function
takes two float values, V1 and V2, and returns +1 when V1
4. Modify the program as follows: Create one single function called compare Two() to replace the myMax() and my Min() functions. The compare Two() function takes two float values, V1 and V2, and returns +1 when V1 > V2, returns 0 when V1 = V2, returns - 1 when V1 #include #include float myMax (float x,float y); float my Min(float x,float y); int main(void) { system("cls"); int number_count, i; float number, minimum, maximum; printf(" How many numbers you will enter?"); scanf("%d", &number_count); printf(" Now you will be asked to enter the numbers."); printf(" Enter number 1: "); scanf("%f", &number); minimum = maximum = number; for (i = 2; i y) return x; else return y; } float myMin(float x,float y) { if (x

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!