Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
triangle equation practice for math
Author Message
jonos

Posted: Tue Feb 17, 2004 8:29 pm   Post subject: triangle equation practice for math

i did this for practice in equations for math (grade 10), so you have to input three vertexes of a triangle, and the program will draw it on a grid, calculate the lengths, slopes, and midpoints of all the sides. i was originally going to have it draw the medians and point out the centroid and all that stuff but i kind of lost interest (again, again, damn).

keep you labels to only 1 character, and all coordinates under 20 and over 0. have fun. hopefully the bits thing works.

jonos

Posted: Tue Feb 17, 2004 9:34 pm   Post subject: (No subject)

come on people say something. its been on here for almost an hour or more. geez.

edit: ok i guess i will have to wait for tomorrow morning to get feedback from you people who are too busy to look at this. damn;.
jonos

Posted: Fri Feb 20, 2004 12:32 pm   Post subject: (No subject)

Paul

Posted: Fri Feb 20, 2004 2:13 pm   Post subject: (No subject)

1st, its in RAR, so that eliminates some ppl. Then theres
Quote:

triangle boring stuff

And I only look at interesting stuff...
jonos

Posted: Fri Feb 20, 2004 3:46 pm   Post subject: (No subject)

well, i will have to change it for the people who need to get a better archiver (like 7zip).
Cervantes

Posted: Fri Feb 20, 2004 4:27 pm   Post subject: (No subject)

looks really good.
You said you lost interest. If you hadn't I would suggest making it so that when you're inputting the grid is already drawn and it plots the point that the coord is. Then when all the points are plotted and labelled it draws the lines and calculates stuff.
Cervantes

Posted: Fri Feb 20, 2004 4:31 pm   Post subject: (No subject)

oo.. just got a runtime error from division by zero when trying to calculate the slope or a verticle line.
jonos

Posted: Fri Feb 20, 2004 4:38 pm   Post subject: (No subject)

yeah, i got that too, i don't know how to fix that, and as you are knowing of, i have lost interest in it. maybe ill do the grid thing... that might be fun.

Cervantes

Posted: Fri Feb 20, 2004 6:08 pm   Post subject: (No subject)

When you are calculating the slope of line AB do this:
 code: if x2 - x1 not= 0 then   blah blah blah end if
jonos

Posted: Fri Feb 20, 2004 8:33 pm   Post subject: (No subject)

good idea, and i will someday do it, but not now. ive practically stopped turing and moved to blitz.
the_short1

Posted: Fri Feb 20, 2004 9:05 pm   Post subject: (No subject)

hahah gr.10 math.... i hate equations .....
im good, but i dont have to like em!!!!

Cool prog.... too bad if i want an answer i will look in back of book.....
(if i cant figure it out) i dont have a lab top at school to use this... so...yea...

i dont realy listen to teach much... i zone out... then i dont know how to do some stuff.. (all good now).. but this mite have been nice a little while ago when i acually had homework...

PS: i never do homework, it gets done at school....
Good job + 3 BITS

Also, any other progs u working on????
jonos

Posted: Fri Feb 20, 2004 9:32 pm   Post subject: (No subject)

nope, i am not working on any progs, im tyring to learn bb
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 12 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: