1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitrij [34]
3 years ago
10

Define a class Complex to represent complex numbers. All complex numbers are of the form x + yi, where x and y are real numbers,

real numbers being all those numbers which are positive, negative, or zero.
Computers and Technology
1 answer:
Ksenya-84 [330]3 years ago
7 0

Answer:

The program in C++ is as follows:

#include<bits/stdc++.h>

using namespace std;

class Complex {

public:

 int rl, im;

Complex(){ }

Complex(int Real, int Imaginary){

 rl = Real;  im = Imaginary;

}

};

int main(){

   int real, imag;

   cout<<"Real: ";    cin>>real;

   cout<<"Imaginary: ";    cin>>imag;

Complex ComplexNum(real, imag);

cout<<"Result : "<< ComplexNum.rl<<" + "<<ComplexNum.im<<"i"<<endl;

}

Explanation:

See attachment for explanation

Download cpp
You might be interested in
Grooves and polished surfaces on desert pebbles are most likely caused by
Serga [27]
B. abrasion. Abrasion is pretty much friction on the rocks. Yardangs don't really apply to this situation and I have never heard of a deflated rock:P Hope that helps:) 
7 0
3 years ago
What does “default” refer to? the ability to be used as, or directly converted to, cash. the failure to pay back a loan. the amo
Vaselesa [24]
The answer is "the failure to pay back a loan".

In computer systems, we have a different meaning to the word default. It is referred to the setting or option in a computer upon opening a program or application. But according to the dictionary, default refers to the failure to make a payment such as a loan.
8 0
3 years ago
Assume that the variable myString refers to a string. Write a code segment that uses a loop to print the characters of the strin
Svetach [21]

Answer:

hi my name is antonette Jane S pascua please help me my question thank you for your answer

5 0
3 years ago
Explain the advantages of taking the aspire test
Len [333]

<span>The Aspire test plan is similar to the ACT </span>plan but they have different goals and format. The ACT was simply a readiness test and seeks to assess your academic progress. The Aspire, on the other hand, focuses more on critical and creative thinking. It is a good way to judge your progress but it won’t affect your applications to college admissions and scholarship.

8 0
4 years ago
How do you open Microsoft Excel 2013 with Windows 8?
adell [148]
Go to the apps page. When you get there find the search bar, and once you find the search bar, click in it and type in Microsoft Excel 2013. The application will come, click on it and it will open. *Note:- This is only if you have already downloaded it on your computer/laptop, or if it came with your laptop/computer.*

Hope I helped ya!! xD
8 0
3 years ago
Other questions:
  • You could face mandatory revocation of your license as a result of __________ A. lying about ownership of your vehicle. B. drivi
    14·1 answer
  • What must be done to translate a posttest loop expressed in the form
    9·1 answer
  • The picture that graphically represents the items you use in windows is called a/an
    15·2 answers
  • When an attacker promotes themselves as reputable third-party advertisers to distribute their malware through the Web ads,
    15·1 answer
  • What is the importance of personal computers in connecting to the internet ?
    13·2 answers
  • What is the most likely result of a correctly installed processor, but an incorrectly installed cooler?
    6·1 answer
  • Which of the following is a potential hazard
    12·2 answers
  • Help with Java, please!
    5·1 answer
  • Why do we use if statements?
    9·1 answer
  • _________ in online education refer(s) to how fairly the particular needs of particular groups of students are met.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!