Answer:
A complex data type can be created by the use of class or structures.
#include <iostream>
using namespace std;
class complex{//creating a class complex to store a complex value.
public://defining all the values public.
int real;
int img;
complex(int real,int img)//parameterized constructor.
{
this->real=real;
this->img=img;
}
};
int main() {
complex n1(1,2);//n1 is a complex number with real part 1 and imaginary part 2.
cout<<n1.real<<" i"<<n1.img<<endl;
return 0;
}
Output
1 i2
Explanation:
I have created a class complex to store complex number with two integer parts real and imaginary.You can also declare them float if you wan to store decimal values and after that i have created a parameterized constructor with real and imaginary values.So we can assign the values at the time of declaration of the object of class complex.
Answer:
Receiving unexpected results from a program
Explanation:
Logic errors are due to the program not producing a desired result.
Answer:
Different types of biometric method used in AI are
Explanation:
Face Recognition.
Speaker (Voice) Recognition.
Fingerprint Recognition.
Behavioral Biometrics.
Crossmatch – 'Composite' Biometric Authentication.
Tygart Technology – Facial Recognition from Videos.
Onfido – Facial Biometrics.
EyeLock – Iris Recognition.
Answer:
I would say B or D because they both help the programmer. D may be the best option since it would show a list of functions the programmer could use.
Answer:
Sequence.
Explanation:
The elements in a dictionary are not stored in a specific order. Therefore, a dictionary is not a sequence.
This ultimately implies that, the elements present in a dictionary are not organized or sorted.