Unformatted text preview: object has been randomly moved by the statement below. Write the code to determine and display which quadrant the Ring object is located in. Have you code take into account that Ring may not be in any quadrant. Ring.Move( rand() % 10 , rand() % 10); Example Output: Ring is in quadrant #2 with coordinates [-2,4] Example Output: Ring is not in any quadrant with coordinates [0 , 0] Q2 Q1 Q3 Q4...
View Full Document
- Fall '07
- Object-Oriented Programming, Subroutine, Ring object, small main program