Question: For this homework assignment we will be working with if-statements and switch statements. Immediately below are the prototypes for the three functions I'd like you

 For this homework assignment we will be working with if-statements andswitch statements. Immediately below are the prototypes for the three functions I'd

For this homework assignment we will be working with if-statements and switch statements. Immediately below are the prototypes for the three functions I'd like you to define in the file hw3.c. You MUST include hw3.h that I have uploaded for you in the starter code. Just a reminder, do NOT include a main function. I already have a file called main.c that has a main function in it that you can use to see if your functions are working correctly. int larger( int num], int num2); int smaller( int num], int num2 ); int switch_larger_smaller( int choice, int num], int num2); Function larger should return the larger of the two parameters passed to it. Function smaller should return the smaller of the two parameters passed to it. Function switch_larger_smaller: MUST use a switch statement If choice is 1, call function larger, giving it num1 and num2 as parameters and return the result If choice is 2, call function smaller, giving it num1 and num2 as parameters and return the result For any other value of choice, return-1 work/hw3.h resource + lib 1 //You SHOULD NOT modify this file 2 #ifndef HW3_H 3 #define HW3 H 4 5 int larger( int num], int num2) 6 int smaller( int numi, int num2); 1 int switch_larger_smaller( int choice, int numi, int num2): 8 3 #eridif 10 + asnlib + scripts + startercode work hw3.c hw3.1 main.c + - ddd_v1_w_YNdp_633166@runweb10:"$

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!