Question: COMP2650_Lab05 Please complete in C programming :) Thank you so much! Step 2. Writing Modular Programs As we did in Lab04, let's add a new

COMP2650_Lab05
Please complete in C programming :) Thank you so much!
Step 2. Writing Modular Programs As we did in Lab04, let's add a new header file arithmetic.h and code (source) file arithmetic.cpp to implement all functions related to arithmetic in signed-magnitude. arithmetic.h void func_signed_mag_addition(int a[], int b[], int result[]); void func_signed_mag_subtraction(int a[], int b[], int result[]); arithmetic.cpp #define MAX 8//Byte = 8 bits void func_signed_mag_addition(int a[], int b[], int result[]){...} void func_signed_mag_subtraction(int a[], int b[], int result[]){...} As seen, header files contain only the signatures of the functions and not the bodies. Please look at the in the end of each function. Now we are ready to add the headers to our main program and use the functions in each separate file: 01 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
