This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 04/18/2008 for the course CS 201 taught by Professor Conway during the Fall '07 term at Bowling Green.
- Fall '07