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

Username:   Password: 
 RegisterRegister   
 Phonetic Alphabet
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Thu Sep 25, 2008 4:57 pm   Post subject: RE:Phonetic Alphabet

We aren't assuming you know these things. We are helping you, and if we tell you to use something you don't know of, or use a word you haven't learned, feel free to ask about it, and we'll explain in greater detail
Sponsor
Sponsor
Sponsor
sponsor
SkaarjSlayer




PostPosted: Thu Sep 25, 2008 4:58 pm   Post subject: Re: Phonetic Alphabet

No, I didn't think it was right, but I thought I'd like to share. I put this up to get tips and I'll accept suggestions to make it more efficient and better but I don't like hearing "Well *I* can do it in 2 minutes, why can't you do it in 15?"
The_Bean




PostPosted: Thu Sep 25, 2008 4:59 pm   Post subject: Re: Phonetic Alphabet

Turing:

var names : array 1 .. 26 of string := init ("Alpha", "Bravo", "Charlie", "Delta", "Echo", "Foxtrot", "Golf", "Hotel", "India", "Juliet", "Kilo", "Lima", "Mike", "November", "Oscar", "Papa",
    "Quebec", "Romeo", "Sierra", "Tango", "Uniform", "Victor", "Whiskey", "X - ray", "Yankee", "Zulu")
var word : string
get word
word := Str.Upper (word)
for i : 1 .. length (word)
    put names (ord (word (i)) - 64)
end for
Insectoid




PostPosted: Thu Sep 25, 2008 4:59 pm   Post subject: RE:Phonetic Alphabet

It's a programmer thing.
SkaarjSlayer




PostPosted: Thu Sep 25, 2008 5:01 pm   Post subject: Re: Phonetic Alphabet

Alright.

And thanks Bean, but I have to admit that's beyond my knowledge of Turing Razz
gitoxa




PostPosted: Thu Sep 25, 2008 5:03 pm   Post subject: Re: Phonetic Alphabet

SkaarjSlayer @ Thu Sep 25, 2008 4:58 pm wrote:
No, I didn't think it was right, but I thought I'd like to share. I put this up to get tips and I'll accept suggestions to make it more efficient and better but I don't like hearing "Well *I* can do it in 2 minutes, why can't you do it in 15?"

That isn't at all what I said, you're trying to make me out as a larger a**hole than I am. I simply said it hsould not have taken you 2 hours, because a large portion of this time was spent copying + pasting a new if structure, and adding more to the end of it.
If you hadn't been so defensive, you probably would have understood that.
SkaarjSlayer




PostPosted: Thu Sep 25, 2008 5:05 pm   Post subject: Re: Phonetic Alphabet

I know what my program does and I know it can be done way more efficiently, as I was just shown. I apologize for jumping on you like that, I'm just normally used to people saying "I can do it better."
Insectoid




PostPosted: Thu Sep 25, 2008 5:08 pm   Post subject: RE:Phonetic Alphabet

I think this topic has strayed far enough from it's original course. If it doesn't turn back, it may be locked (how I wish I had mod powers..)
Sponsor
Sponsor
Sponsor
sponsor
[Gandalf]




PostPosted: Thu Sep 25, 2008 5:58 pm   Post subject: RE:Phonetic Alphabet

Deal.

SkaarjSlayer, you'd definitely save a lot of time and become more knowledgeable, maybe even wiser if you learn loops and other nifty things like functions. Take a look at the Turing Walkthrough in the tutorials forum. Smile
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 24 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: