Question: Program # 1 - please write code in C completely ( it said wrong about the unknown Complex Complex Number Library A complex number is
Program # please write code in C completely it said wrong about the unknown Complex
Complex Number Library
A complex number is one that contains a real and imaginary component of the form:
Create a library called complex.h in your code. It should include the type declaration for a complex number data
type named Complex. It should also declare the following functions:
Implementation of these functions should be in a separate source file: complex.c Your solution must also
include a main.c file, which impelments the main function.
Your program must:
#include the complex. header file
Implement the functions in complex. in a separate file, complex.c
Compile main.c and complex.c into a single executable
Get two complex numbers and output each to stdout
Add the two complex numbers, output the result to stdout
Multiply the two complex numbers, output the result to stdou
Copy the second complex number to the first, output them both stdout
Note: Examples of valid complex numbers are as follows:
;;;;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
