Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
performing and displaying math in alice
Old
tferguson1970
Guest
 
Status:
Posts: n/a
Default performing and displaying math in alice - 05-29-2011, 06:43 PM

Hello all,

I'm stuck in a project I am doing. I know how to make Alice, or rather an object ask the user to interact and answer a question but I can't figure out how to display the total of a math equation. In it the object asks the user for a distance to a place, then asks how fast they can drive...I've got that part down but I can't figure out how to make Alice and the object display the different possible answers to the equation miles / speed to give how long it'll take to get there.

Thanks
   
Reply With Quote
Old
lolgast
Junior Member
 
Status: Offline
Posts: 14
Join Date: May 2011
Location: Somewhere in this or a parallel universe
Default 05-30-2011, 02:53 AM

If you put some text in the program to explain what's actually needed, and post the game, I might be able to help you


Lolgast.
   
Reply With Quote
Old
tferguson1970
Guest
 
Status:
Posts: n/a
Default 05-30-2011, 06:54 AM

Hello all,

Here's a portion of what I am trying to do with the typing 2 numbers then dividing then while displaying them. Thanks for your help, I'm utterly stuck at this point.
Attached Files
File Type: a2w trying to get math to work and display.a2w (969.1 KB, 2 views)
   
Reply With Quote
Old
lolgast
Junior Member
 
Status: Offline
Posts: 14
Join Date: May 2011
Location: Somewhere in this or a parallel universe
Default 05-30-2011, 12:38 PM

I've done it, and explained what I've done in the method. Only problem is that it's displayed in very much decimals. I don't now how you can fix that, sorry.
Attached Files
File Type: a2w time calculator.a2w (797.8 KB, 22 views)


Lolgast.
   
Reply With Quote
Awesome
Old
tferguson1970
Guest
 
Status:
Posts: n/a
Default Awesome - 05-30-2011, 07:47 PM

Hello lolgast,

Holy Cow, you are a lifesaver....that did it....that helped tremendously!!! I could care less if it displays decimals after the whole number....but I do need to figure out for later on and that can wait.

Thank you very much
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.