Question: OBJECT ORIENTED PROGRAMMING C++ (two different tasks) Task 1. Create a class Polar that represents the points on the plain as polar coordinates (radius and

OBJECT ORIENTED PROGRAMMING C++

(two different tasks)

Task 1. Create a class Polar that represents the points on the plain as polar coordinates (radius and angle). Create an overloaded +operator for addition of two Polar quantities. Adding two points on the plain can be accomplished by adding their X coordinates and then adding their Y coordinates. This gives the X and Y coordinates of the answer. Thus youll need to convert two sets of polar coordinates to rectangular coordinates, add them, then convert the resulting rectangular representation back to polar.

Task 2. Define a class to represent Complex Numbers. Overload the arithmetic operators (+, -, * and \) to work on two complex objects

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!