Computer Science Canada

Need to chnage to functions

Author:  Big_Tom [ Mon Mar 01, 2004 11:27 am ]
Post subject:  Need to chnage to functions

I need to turn convert these to function and turn it into a calculator...any help?

Author:  Tony [ Mon Mar 01, 2004 1:04 pm ]
Post subject: 

well.. it would preaty much be the same thing, but you use arguments instead of user input. Such as
code:

function arabicToRoman(num:int):string
...
%do your loops here
...
result romanString
end arabicToRoman


and same thing in reverse
code:

function romanToArabic(num:string):int
...
%your other loop
...
result arabicNum
end romanToArabic

Author:  Big_Tom [ Fri Mar 05, 2004 10:38 am ]
Post subject: 

wanna do it for me? it's the weekend and i'm lazy.

Author:  McKenzie [ Fri Mar 05, 2004 11:14 am ]
Post subject: 

Tom, I assume you are trying to be funny. The problem is way too many people are not joking when they ask that same stupid question.


: