Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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.
  • 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 program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

Understand the use of exit interview data for analytics

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago