Normal Topic 99 Bottles of Beer (Read 587 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
99 Bottles of Beer
Nov 18th, 2005 at 8:24am
Print Post Print Post  
I just submitted the following code to 99 Bottles of Beer which collects examples of diferent languages.  It may take a few days for them to review it before it is actually posted.  This will be the 847th language submitted.

Code
Select All
var n as Int
var t as Int		//Time delay between line prints (1000 = 1 second)
var vBottle as String

t=20

For n = 99 downto 1
    If n=1 Then vBottle = " bottle" else vBottle = " bottles"
    WriteLn(n + vBottle  + " of beer on the wall,")
    Loiter(t)
    WriteLn(n + vBottle  + " of beer,")
    Loiter(t)
    WriteLn("Take one down and pass it around,")
    Loiter(t)
    WriteLn(n + vBottle  + " of beer on the wall." + @NewLine() )
    Loiter(t)
Next

WriteLn("......hic.........hic, hic..........hic")
WriteLn("Set 'em up again, Sam")   



Just trying to help spread the word about Sbasic and Sesame.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: 99 Bottles of Beer
Reply #1 - Nov 23rd, 2005 at 2:43am
Print Post Print Post  
It got listed. Everybody should go vote for it. I just voted "Nice Coding".

For a while now Murdoch U. in Australia has had SBasic (Sesame Basic - there are several "SBasics") listed in its "HOPL" database of computer languages.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: 99 Bottles of Beer
Reply #2 - Nov 23rd, 2005 at 3:27am
Print Post Print Post  
Yes, it was accepted.  It also has a link to Sesame to generate some sales leads!

Mark, I think that they are looking for ways to show off the capability of the language.  I think that you could submit a much better version than I did showing off many more functions, maybe parsing a stringarray of 99;98;97, etc.  I just did a quick and dirty example.

Or maybe someone could show using PrintString with fonts, colors, etc.  We could all submit a version of 99 Bottles, showing off more features with each example. 

Another version might be to use File i/o and write to an HTML document vs. WriteLn.

Go for it!  Show it here after you post it to  99 Bottles of Beer
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged