[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> Re:input of numbers



I reached this resolution to your question. I'm not sure if it is correct, as
I am not familiar with the equation you mentioned, but I hope this helps.
Type "velocity" to invoke it.
                                                -Tom 

to calculate
make "u2 first comboboxgettext "u
make "a2 first comboboxgettext "a
make "t2 first comboboxgettext "t
make "product :a2 * :t2
make "total :product + :u2
staticupdate "answer (sentence [Answer =] :total)
buttondelete "calculate
buttoncreate "velocity "back "Back 102 30 35 10 [buttondelete "back
buttondelete "close windowdelete "velocity velocity]
end

to velocity
windowcreate "main "velocity [Velocity Calculator] 150 100 150 65
[staticcreate "velocity "equation [V=] 10 20 10 20]
comboboxcreate "velocity "u 20 17 20 10
comboboxsettext "u [U]
staticcreate "velocity "plus [+] 41 20 10 10
comboboxcreate "velocity "a 50 17 20 10
comboboxsettext "a [A]
staticcreate "velocity "multiply [*] 71 20 10 10
comboboxcreate "velocity "t 81 17 20 10
comboboxsettext "t [T]
staticcreate "velocity "answer [Answer = ?] 10 35 100 10
buttoncreate "velocity "calculate "Calculate 102 30 35 10 [calculate]
buttoncreate "velocity "close "Exit 102 40 35 10 [windowdelete "velocity stop]
end

You wrote:

hello turtles !

greetings from down under.

a couple of us have been mucking around in vb and mswlogo and are now to
the point of windows. mswwindows i guess.

now the point to this is we wish to input a coupleof numbers into a
proceedure, like in

v = u + at

where we need a value for u, a and t to work out v (velocity)

so we need to be able to enter three numbers, click on a button, and
retrieve a result

could  you help plese ?

thanks
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home