Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: mikmoth on April 12, 2005, 03:15:23 pm

Title: Come back to the Default Brain
Post by: mikmoth on April 12, 2005, 03:15:23 pm
I posted in this forum because I know a lot of older users hang out here.

I've been using the XTF and Enhanced brain forever but on a whim I loaded the Default Brain and whala... I started having fun with Hal again! I dont know why but the Default brain seems to have a personality that that the others seem to lack. I actually had fun!

Just give it a try...!

Medeksza!

Mik
Title: Come back to the Default Brain
Post by: Duskrider on April 15, 2005, 10:41:39 am
I just ran across the following script.
Can anyone here re-write it for Hal ?


# convert2.py
#      A program to convert Celsius temps to Fahrenheit.
#      This version issues heat and cold warnings.

def main():
    celsius = input("What is the Celsius temperature? ")
    fahrenheit = 9.0 / 5.0 * celsius + 32
    print "The temperature is", fahrenheit, "degrees fahrenheit."
    if fahrenheit > 90:
        print "It's really hot out there, be careful!"
    if fahrenheit < 30:
        print "Brrrrr. Be sure to dress warmly"

main()


[;)]