[Thread Prev] [Thread Next]
On 6 May 2005 at 11:23, Trimbach, Traci wrote:
> Two questions:
>
>
>
> 1. Is there any way for a program to draw a text box
newtext name [x y] [xsize ysize]
Creates a new text box using the name and size specified at
the position [x y] indicated. The position is the top, left
corner of the box. The maximum [xsize ysize] is the size of
the page in the project.
> or hatch a
> turtle in a startup procedure?
newturtle name
Creates a new turtle with the name indicated. The new
turtle appears at the position [0 0] and is hidden.
> 2. Is there any way to store a variable to use later? For
> instance, if I wanted the students to write a program that asks the user
> to order how many hamburgers, fries and drinks they wanted and the
> program would take their answers and calculate how much they owe based
> on the amount of items ordered and include tax. The computer would then
> output the amount owed to the user.
to ini
make "burgers.amount 10
make "fries.amount 6
make "drinks.amount 20
make "burgers.cost 1.5
make "fries.cost 0.5
make "drinks.cost 0.8
make "tax 0.12
show (:burgers.amount * :burgers.cost
+ :fries.amount * :fries.cost
+ :drinks.amount * :drinks.cost) * (1 + :tax)
end
Daniel
*****************************
OpenWorld Learning
http://www.openworldlearning.org
_______________________________________________
MWForum mailing list
MWForum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
List Info: http://mia.openworldlearning.org/mwforum.htm
Archives: http://mia.openworldlearning.org/mwforum/
Attachments archived at:
http://mia.openworldlearning.org/mwforum/attachments.html
To unsubscribe or for administrative questions contact
mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Previous by thread:
Startup and variables
Next by thread:
RE: Startup and variables
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|