Hi. I'm a full time Research Engineer, and I used to be a Tutorial Lecturer in my university for Computer Networks class. I do have a similar but simpler project in Java from my studies, my task was to simply build a Subnet Mask generator, based on the IP class and requested number of subnets.
Here is a screenshot of that program: [login to view URL]
Combining that and your prewitten code, I am sure I can finish the project within 1-2 days.
Hit me up with more details about the project.
Best regards,
Zsolt