Creating/Drawing Triangles from inputted sizes

pts.
Tags:
Visual Basic
I'm creating a program for college work, now I have created the application to specifications given with added features. Now I would like to add the feature where from inputted sizes of the triangle to create the triangle. Is this possible and if so can some one please help supply the code for me, I would be extremely greatful (I'm not breaching rules of the work as I've meet the specifications of my work and I'm adding additonal features). David Penfold

Answer Wiki

Thanks. We'll let you know when a new response is added.

This is where you learn some systems engineering, rather than just getting some free code. The two driving factors on a program are the inputs and the outputs. First, consider the inputs. There are a number of ways to specify a triangle. You can use 3 points, two points plus an implicit point at the origin, 3 side measures, two side measures plus the angle between the given sides, or a side and the two ending angles. If you don’t care what the size of the triangle is, but care only about the shape, you can specify the triangle by 3 angles only. The next thing to consider is the outputs. Will the triangle be drawn? If so, how? If not, what exactly is the output? Once these things are known, you have an interface spec. After that, decide (or tell us) what the OS and language are.

Sheldon Linker
Linker Systems, Inc.
www.linkersystems.com
sol@linker.com
800-315-1174
+1-949-552-1904

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BeerMaker
    david is right. Time to learn what it takes to be a programmer instead of searching for free code. In Vb you can start with a picture control. There are APIs to draw lines in the control using x and y coordinates. You specify the line width and color. You will have to draw the 3 lines of your triangle and make sure you connect the dots. Its realtively easy and fun.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following