Hello, I need help with this ECE 2310 coding problem. Please show all the correct parts to this problem. I will provide

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Hello, I need help with this ECE 2310 coding problem. Please show all the correct parts to this problem. I will provide

Post by answerhappygod »

Hello,
I need help with this ECE 2310 coding problem. Please show all the correct parts to this problem. I will provide the Problem that I want you to solve in the first image. please follow all of the directions for this problem.
Please provide the labeling of the specific part of the answer to the specific part of the problem so I can find which letter answer belongs to which letter problem (For Example, Answer Part A goes to Problem Part A)
I will provide my own answer to the code, but the problem is that I do not know if it is correct or not, so I want to confirm with a tutor if it is correct or not.
What I want for you is to show a C# code in the .NET Fiddle C# Complier, for this problem and explain how it works and how it produces the answer based on the problem.
Please provide a PICTURE or SCREENSHOT of the OUTPUT to make sure that the C# Code Program works and provide the code itself so I can see if it works or not.
Also please, make sure to provide the correct, sorry if I am writing this, but I just got scammed on another tutoring website for asking a coding question, so I just want to make sure that I do not get scammed again.
Please be neat and provide detailed written explanations on how this C# code works, this is very important to me (since I want to understand how this problem works), and I promise that I will rate you. Thank you very much.
4. (39%) Enhance class Complex from week 4 (that has add, mulfix, etc.) or class Complex from week 5 (that has +-* as operators) (a) (5%) Method subtract (or operator -) to subtract two complex numbers (b) (10%) Method div (or operator /) to divide one complex number by another complex number (c) (14%) Note that polar form of a complex number a +bj=re" with r = √²+ b² as the magnitude or the value of c, and argument or angle 8 as arctan (b/a) (arc tangent of b/a). (7%) Define method CarToPolar that convert a complex number of the Cartesian form a +bj to the polar form re (7%) Define a second method PolarToCar to convert a complex number of the polar form = re to its Cartesian form a +bj. Note ar cos 0, and b = r sin( 0). (d) (10%) Test your enhanced class Complex with such test data: C1=1+j, C2=1-j Compute C1+C2, C1-C2, C1 C2 and C1/C2 (division). Compute the polar form of C1, C2, and = 2 -1+√-3 Compute C1/0 (division by zero) and show if you have error messages. (Note for 1+j, r = √2, and = 0 45 degrees or 7/4.) Note square root can be implemented using sqrt, and arctangent is implemented using atan or atan2 library functions. 3
1 2 HE□□□□颈&RD&D&D路節RERA855 43 using System; // namespace containing Argumentoutof RangeException public class Complex ( public class co ( "7 private double rP; // real part private double IP; // imaginary part public void setComplex (double r, double 1) ( } public void add(Complex c1) ( } ( public } ( } rP = r; iP = 1; public void mul(Complex (1) ( } rP + c1.rp; iP + 1.1P; rp IP public void mulfix (Complex (1) l.print(); void addTwo(Complex c1, Complex (2) c1.rp + c2.rP; c1.1P+ c2.1P; (0); // use the formula (a+bj) (c+d)) (ac-bd) + (ad+bc) rPrp cl.rp ip c1.1P; ip rp cl.1P IP cl.rP; // use the formula (a+bj) (c+dj) (ac-bd) + (ad+bc) Complex ccopy new Complex(); public void print() ( } ccopy.rp=rp cl.rp ip cl.iP; ccopy. IP rp cl.ip+ ip cl.rp; .. rp = ccopy.rP; IP = ccopy.iP; stati lang create and initial complect Complicit), c2sex les(), Cop(); Contine c.Comple(1, 1); ConseriteLine("Print that) Content"Creats - 2.etcomplex. 3) Costin (2+3)= (2-3) in the wrong way (correct c1.mc2); Console.WriteLine("(0) (1)j", rP, SP); 1. prist() Contein (+3)(x-1) in the right way (correct 3.SetCom, 13 CL((2) ()
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply