3:22 PM Fri Mar 12 $31% CS260 Spring 2021 Lab 6.docx . CS280 Spring 2016 A User-Defined Type for Complex Numbers We are working com engineering project that uses complex sombers for modeling of electrical Circuits. We need to develop a user-defined structure type and a set of operations that will make complex arithmetic virtually as stresadas eithetic on buil-mumeric types Analysis A complex number simber with a real port and an imaginary purt. For example, the complex timber as a real part and an imaginary pub, where the symbolisepresents We will need to delle fonctions for complex a well as for the basic operations addition, multiplications and deco) So finding the absolute value of a complexumber Design The two major aspects of our solution to this problem are defining the structure of the user defined type and describing the function name, parameters, and purpose of each person. Each function purpose the forma subproblem to be solved spately. The detail of the subproblems will be of interest to wwe develop our operation. However, once the group of faction is complete, we will be concermed only with what each function does not with how it does it. In the same way, when we we C'shilla multiplication opere, we are interested only in the fact that does multiplication, not caring in the show Aston as the specifice complete comment on the circuit * madaling pejt can be designing algorithms that suithe availability of the operation. Then, when implementation is complete, cur code can either be added to their programs or packaged Here below we de structure declaration and imaginary numbers arithmetic functia declaration Notice that the definition of type compleet is placed immediately after our peoprocent directives so that it is viable throphost the entire geogram Functional complexes the following formula to compute the absolute value of a complex number This result always has an imaginary part of zero, so peat complex will display the result as a real number included include the stare definition typedef steert de variables, type is double real and imag complex functie declaration. The fest two optand up. The last one is for the blue value of the imaginary number int man_complex complexe) wold print_complexemplox_te) complex t ad completcomplex cb, complet complex t subtract_complex complex t el, complete omplex t multiply complex complex tel, complex t ea) complex t divide complex (complex to complex complex t abw_complex complex_c13 definitie of dit of the weinig Comples del complex complex tel, complex tc2) complex cum m.coalck.real.cat - el ... Your job is to define the functions as declared above. Then call there in the main function for testing. Here below is the sample run for your reference. Make sure it shows multiplication and inter the real and inaginaty parts of a complexum separated by a spaces. Intercond complex wbr> 13.50 +3.20) 2.50 +1.2017 - 16.00 6.401) (3.50 +5.201) - 12.50 +1.2011 - 1.00 6.00 109.99.5.2017 - 16.27) 3:22 PM Fri Mar 12 $31% CS260 Spring 2021 Lab 6.docx . CS280 Spring 2016 A User-Defined Type for Complex Numbers We are working com engineering project that uses complex sombers for modeling of electrical Circuits. We need to develop a user-defined structure type and a set of operations that will make complex arithmetic virtually as stresadas eithetic on buil-mumeric types Analysis A complex number simber with a real port and an imaginary purt. For example, the complex timber as a real part and an imaginary pub, where the symbolisepresents We will need to delle fonctions for complex a well as for the basic operations addition, multiplications and deco) So finding the absolute value of a complexumber Design The two major aspects of our solution to this problem are defining the structure of the user defined type and describing the function name, parameters, and purpose of each person. Each function purpose the forma subproblem to be solved spately. The detail of the subproblems will be of interest to wwe develop our operation. However, once the group of faction is complete, we will be concermed only with what each function does not with how it does it. In the same way, when we we C'shilla multiplication opere, we are interested only in the fact that does multiplication, not caring in the show Aston as the specifice complete comment on the circuit * madaling pejt can be designing algorithms that suithe availability of the operation. Then, when implementation is complete, cur code can either be added to their programs or packaged Here below we de structure declaration and imaginary numbers arithmetic functia declaration Notice that the definition of type compleet is placed immediately after our peoprocent directives so that it is viable throphost the entire geogram Functional complexes the following formula to compute the absolute value of a complex number This result always has an imaginary part of zero, so peat complex will display the result as a real number included include the stare definition typedef steert de variables, type is double real and imag complex functie declaration. The fest two optand up. The last one is for the blue value of the imaginary number int man_complex complexe) wold print_complexemplox_te) complex t ad completcomplex cb, complet complex t subtract_complex complex t el, complete omplex t multiply complex complex tel, complex t ea) complex t divide complex (complex to complex complex t abw_complex complex_c13 definitie of dit of the weinig Comples del complex complex tel, complex tc2) complex cum m.coalck.real.cat - el ... Your job is to define the functions as declared above. Then call there in the main function for testing. Here below is the sample run for your reference. Make sure it shows multiplication and inter the real and inaginaty parts of a complexum separated by a spaces. Intercond complex wbr> 13.50 +3.20) 2.50 +1.2017 - 16.00 6.401) (3.50 +5.201) - 12.50 +1.2011 - 1.00 6.00 109.99.5.2017 - 16.27)