Alice Community How do I do math questions?

 How do I do math questions?
 wgb5859 Guest   Status: Posts: n/a How do I do math questions? - 04-07-2009, 11:34 AM I am trying to make a wizard answer a question that user types in a number. Then the wizard converts the number to a Roman Numeral and says "The number 7 is VII". I have to do this for numbers 1 thru 10. I know it is so type of an if else statement. So far not having any luck. Any help would be appreciated. Please give as much detail as possible. Thanks for all your help, confused:
tamahoc
Guest

Status:
Posts: n/a
04-12-2009, 05:19 PM

Basically you need a lot of nested If statements. This is the question from the Tony Gaddis text, right? The basic way to deal with the question is to make an if statement for each whole number between 1-10, so:
if number[variable] = 10 then
wizard say "X",
else
if number[variable] = 9 then
wizard say "IX"
else
...and so on.
number[variable] is input by the user with "ask user for a number" function.

as example:
Attached Files
 romanNum1.a2w (1.07 MB, 24 views)