# Lab Help: I'm a beginner and I'm already terrible.

• February 7th, 2012, 01:20 PM
Azagtoth
Lab Help: I'm a beginner and I'm already terrible.
I've expended all the "help" available from my instructor. Honestly, I lack the intelligence for a CS degree. Had I known that earlier, I wouldn't have signed away my soul in servitude of some credits necessary to continue this wretched four-year path.

My Homework: Oser000555 - MathCenterWiki

I finished Part A. B is kicking my ass though. I never took a math that dealt with matrices; the courses instructor forgot to mention that I needed more skills before taking this course (yes, I inquired before signing up).

Anyhow, I am sure this is an easy problem for several of you. Could you give me some tips, please?
• February 7th, 2012, 01:30 PM
KevinWorkman
Re: Lab Help: I'm a beginner and I'm already terrible.
I feel your pain. Hopefully this might help a little bit: http://www.javaprogrammingforums.com...e-posting.html
• February 7th, 2012, 03:26 PM
Azagtoth
Re: Lab Help: I'm a beginner and I'm already terrible.
Thanks.

I am basically stuck on the math required to build the worm. You see, I am not above simple high school math. I was told I could take the course anyway, but I now see that was a dire mistake.

I am supposed to get a number from 1.0 to 5.0 from the user. This is for an equilateral triangle. I CAN do that. I will store this value for later use.
Then, I am to get an angle measure from the user: 0-15 degrees. I will store that value for later use.
Then, I am to get the length of the worm (on a graph, so instead of a vector, a worm composed of triangles will be drawn) from the user. This will be a number from 5-50.
The point I am stuck on is how to get this worm drawn.

"Then the program should draw in the plotCanvas area of the breadboard (top center of the form) a set of axes and an equilateral triangle with two vertices at A(0,0), B(0,s) and the third vertex C in the 1st quadrant.
The triangle should be rotated about point A by theta degrees and then redrawn on the plotCanvas
This last step should be done "worm length" times: Starting with point A, but then choosing A or B at random every fifth time, rotate the triangle about the chosen vertex by theta degrees, and then redraw the triangle. What results should be similar to the following "triangle worm": "
http://mathcenter.oxford.emory.edu/w...ser000555a.png

^ The above directions escape me, because I have very limited math knowledge. Additionally, I am terrible at this to begin with (don't tell me not to beat myself up--it's a fact I have accepted).

Basically, I utilize randomized values to draw the triangle specified by the user. The triangle will be drawn multiple times. I don't quite understand how to move the triangles around the graph. I know I have three points on the triangle, but I'm not sure how to move them around properly.