Question: solve all Part III: Submit a working code and sample outputs of your program Given the following operation: X = 49*Y - 4*A and assuming
solve all
Part III: Submit a working code and sample outputs of your program Given the following operation: X = 49*Y - 4*A and assuming the variables X, Y and A are integer variable, do the following: a. Write a C function that performs the above task. The function should have Y and A as input arguments and X as output. b. Without using the multiplication instruction, write a C function that uses left and right shifts and addition or subtraction to perform the same task. Note: the constant 49 = 32+16+1 = 2 + 24 +1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
