Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

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

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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?


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default 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
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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": "


    ^ 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.
    Attached Images Attached Images
    Last edited by Azagtoth; February 7th, 2012 at 04:29 PM.

Similar Threads

  1. I am a beginner please help :)
    By mvonb17 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 6th, 2012, 03:44 PM
  2. Beginner
    By codejava in forum Member Introductions
    Replies: 2
    Last Post: August 22nd, 2011, 08:11 AM
  3. Beginner
    By angelo24 in forum Member Introductions
    Replies: 1
    Last Post: August 19th, 2011, 07:14 AM
  4. Beginner Problem
    By nve5009 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 19th, 2010, 11:29 AM
  5. I need a help ! i am beginner
    By yinky in forum Java Theory & Questions
    Replies: 3
    Last Post: September 30th, 2009, 07:22 AM