Answered step by step
Verified Expert Solution
Question
1 Approved Answer
computer sciecne c++ c++ Write a class that keeps track of a point in polar coordinates. A point in polar coordinates has a length L
computer sciecne c++
c++
Write a class that keeps track of a point in polar coordinates. A point in polar coordinates has a length L and an angle Theta. Make sure to include
- A default constructor that sets the length to one and the angle to zero.
- A constructor that has a length and an angle parameter.
- Remember to reduce an angle larger than 360 to under 360.
- 400 degrees 40 degrees
- 730 degrees 10 degrees
- An overloaded * operator that multiplies two points together.
- To multiply polar coordinates, you need to multiply the lengths together and add the angles.
- Example : (4 @ 100 degrees) * (5 @ 30 degrees) = (20 @ 130 degrees)
- Remember to reduce an angle larger than 360 to under 360 as above.
- To multiply polar coordinates, you need to multiply the lengths together and add the angles.
- An overloaded == operator that compares the length and degrees for equality.
cpp, c,h,hpp,txt,files only!
Write a class that keeps track of a point in polar coordinates. A point in polar coordinates has a length Land an angle Theta. Make sure to include . . A default constructor that sets the length to one and the angle to zero. A constructor that has a length and an angle parameter. Remember to reduce an angle larger than 360 to under 360. o 400 degrees 40 degrees o 730 degrees 10 degrees An overloaded * operator that multiplies two points together. To multiply polar coordinates, you need to multiply the lengths together and add the angles. Example:(4@ 100 degrees) * (5@ 30 degrees) = (20 @ 130 degrees) Remember to reduce an angle larger than 360 to under 360 as above. An overloaded == operator that compares the length and degrees for equality. Upload the necessary Files for your class. I do not need a testing programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started