I doubt you could write this program in 8 hours.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
You can create a Shape with those line segments, and use an AffineTransform in Graphics2D to rotate/shear/ etc
But 8 hours from now? Wow, that's going to be tough. Your teacher must be really challenging you to give you such short notice. (I assume, of course, that you haven't known about this for ages, but only just got round to it because the deadline was looming :icon_rolleyes: )
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I won't around for the full 8 hours, but if you get started I'll try to support you with information and problem solving as far as I can (and so will others on DaniWeb, I'm sure), but you'll still have to do the real work.. Good luck!
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073