good idea,
you use 12 days to come up with that idea for your homework?
you got the physics math already in processing?
or you already can show some code, you need help with?
i mean, we are not allowed to post full code for students homework,
also i not see why we should spend more time ( see Anyone have a good idea? Math and Science )
to google for you.