Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need to chnage to functions
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Big_Tom




PostPosted: 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?


Roman2.t
 Description:

Download
 Filename:  Roman2.t
 Filesize:  6.97 KB
 Downloaded:  188 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Mar 01, 2004 1:04 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Big_Tom




PostPosted: Fri Mar 05, 2004 10:38 am   Post subject: (No subject)

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




PostPosted: Fri Mar 05, 2004 11:14 am   Post subject: (No 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: