Question 1: Complex numbers have the form realPart + imaginaryPart * i. Both realPart and imaginaryPart are integers.
Write C++ code below to define a complexstructure with two integer variables - realPart and imaginaryPart.
Question 2: Write a C++ program to do the given part:
Part 1: Define a 5-elements array of complex number.
Part 2: Define a function called inputdata(array, size) to ask user to input integers for those five complex numbers and store into the array.
Part 3: Define a function called displaydata(array,size) to show the information of the array of the complex numbers.
You can show the number as (realPart, imaginaryPart) instead of realPart + imaginaryPart * i
I am having difficulty with these questions because I do not know where to start with.