Q1: Define a multiplication function inside Complex class, to multiply two complex objects. class complex( int a,b; public: void input() cout<<"Enter Complex Number: \n Real Part: "; cin>>a; cout<<"Imaginary Part: "; cin>>b; void input(int al, int b1) a-al; b-b1; void print() cout

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
i need the answer quickly
• 8 0 4 O 9:-E
HW2.pdf >
C++ Object Oriented Programming
Homework 2
Q1: Define a multiplication function inside Complex class, to multiply
two complex objects.
class complex{
int a,b;
public:
void input ()
cout<<"Enter Complex Number: \n Real Part: ";
cin>>a;
cout<<"Imaginary Part: ";
cin>>b;
}
void input (int al, int b1)
{
a-al;
b-b1;
void print ()
{
cout<<a<<" + "<<b<<"i\n";
}
void sum(complex X, complex Y)
a = X.a + Y.a;
b = X.b + Y.b;
void mult(complex X, complex Y)
{
};
السؤال كما هو موضح اعلاه هو انشاء دالة داخل كلاس Complex الذي تم شرحه بالمحاضرة
الأخيرة والمطلوب من هذه الدالة هي ضرب عد دين معقدين )يعلي تشبه تماما ل لدالة التي تجمع
عد دین معقدين ولكن باختلاف العملية الرياضية بين العد دين المعقدين(. وكما ترون انی وضعت
الدالة بال لون الأحمر والمطلوب فقط أن تكملها.
ملاحظة: رفع الاجابة يكون في الاستمارة وليس في الصف الالكتروني )Clas sro om(
ملاحظة: في حال ثم تفهم السؤال يمكنكم التواصل معي على الواتس او التيليكرام في اي وقت
Last submission date and time: Monday 06-12-2021 10:00 PM
You Can submit your answers by:
https://docs.google.com/forms/d/e/1FAlpQLSciN5jG205BuQnUG
oa3mNrIVZiho 08dnC-zwmW1SbzyszjkQ/viewform?usp=pp url
Transcribed Image Text:• 8 0 4 O 9:-E HW2.pdf > C++ Object Oriented Programming Homework 2 Q1: Define a multiplication function inside Complex class, to multiply two complex objects. class complex{ int a,b; public: void input () cout<<"Enter Complex Number: \n Real Part: "; cin>>a; cout<<"Imaginary Part: "; cin>>b; } void input (int al, int b1) { a-al; b-b1; void print () { cout<<a<<" + "<<b<<"i\n"; } void sum(complex X, complex Y) a = X.a + Y.a; b = X.b + Y.b; void mult(complex X, complex Y) { }; السؤال كما هو موضح اعلاه هو انشاء دالة داخل كلاس Complex الذي تم شرحه بالمحاضرة الأخيرة والمطلوب من هذه الدالة هي ضرب عد دين معقدين )يعلي تشبه تماما ل لدالة التي تجمع عد دین معقدين ولكن باختلاف العملية الرياضية بين العد دين المعقدين(. وكما ترون انی وضعت الدالة بال لون الأحمر والمطلوب فقط أن تكملها. ملاحظة: رفع الاجابة يكون في الاستمارة وليس في الصف الالكتروني )Clas sro om( ملاحظة: في حال ثم تفهم السؤال يمكنكم التواصل معي على الواتس او التيليكرام في اي وقت Last submission date and time: Monday 06-12-2021 10:00 PM You Can submit your answers by: https://docs.google.com/forms/d/e/1FAlpQLSciN5jG205BuQnUG oa3mNrIVZiho 08dnC-zwmW1SbzyszjkQ/viewform?usp=pp url
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY