Menu

[Solved]Function Complexcalc Use Function Option 3 Complex Numbers Chosen Main Function Function C Q37171097

Function complex_calc Use this function when Option 3 (COMPLEX NUMBERS) is chosen in the main function. Function complex_calei need a calculator in C language that takes input from theuser.Function complex_calc Use this function when Option 3 (COMPLEX NUMBERS) is chosen in the main function. Function complex_cale takes no argument, prompts user for two complex numbers in either form (Cartesian or polar), then prompts for an operator (t,-, *, or /), performs the calculation, and displays results in both Cartesian and polar forms. It does not return any answer. The function must check for invalid input (e.g. invalid character for operator). Example COMPLEX NUMBER CALCULATOR ****x Enter 1st complex number: 2-5.5 13.2 Enter 2nd complex number: 1 15.75 -30 Enter an operator (+, -,*,/)* -5.50 + j13.20 15.75 <-30.00 deg) : 225.23 <82.62 deg ) or ( 28.93 + 1223.36 ) Note: Green input are examples of user’s entries. In this example, the programmer uses and 2 as a way to let the program know which format each complex number is in (e.g. 1 for Polar, and 2 for Cartesian). Show transcribed image text Function complex_calc Use this function when Option 3 (COMPLEX NUMBERS) is chosen in the main function. Function complex_cale takes no argument, prompts user for two complex numbers in either form (Cartesian or polar), then prompts for an operator (t,-, *, or /), performs the calculation, and displays results in both Cartesian and polar forms. It does not return any answer. The function must check for invalid input (e.g. invalid character for operator). Example COMPLEX NUMBER CALCULATOR ****x Enter 1st complex number: 2-5.5 13.2 Enter 2nd complex number: 1 15.75 -30 Enter an operator (+, -,*,/)* -5.50 + j13.20 15.75

Expert Answer


Answer to Function complex_calc Use this function when Option 3 (COMPLEX NUMBERS) is chosen in the main function. Function complex… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *