יום שני, 6 בדצמבר 2010

Chapter 10 Test

I have done all the exercises up to the part 5.
I created an interface called Gender and implemented it into my fox and rabbit classes. This implementation randomly assigns a gender (male or female) to each rabit and each fox.

In theory this should produce a ratio of 1:1 for both the rabbit and the fox classes. To prove this I have decided to create a counter that will display the number of males and number of females at any given time. I am hoping to get help on this in class on Wednesday.

אין תגובות:

הוסף רשומת תגובה