View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Lesson 2 Key

Lesson 2 - The Location Class - Answer Key
Exercise Key, Chapter 3
1. false

2. positive number

3. positive number

4. true

5. false

6. B, D, F

7. int i = loc1.getRow( ) loc4.getCol( );

8. (12, 4)

9. (11, 3)

10. if( loc1.getRow( )%2 = = 0 )
    {
    //even
    }
    else
    {
    //odd
    }

11. 270

12. 135

Link to this Page