Husserl über Zeichen und formale Systeme (Code): Unterschied zwischen den Versionen
Aus Philo Wiki
Anna (Diskussion | Beiträge) (JS) |
Anna (Diskussion | Beiträge) (python) |
||
Zeile 5: | Zeile 5: | ||
Zur Vorbereitung: [http://www.js-x.com/page/javascripts__example.html?id=188 einfache Subtraktion in JavaScript] | Zur Vorbereitung: [http://www.js-x.com/page/javascripts__example.html?id=188 einfache Subtraktion in JavaScript] | ||
+ | |||
+ | Einfache arithmetische Operationen in Python ([http://www.dickbaldwin.com/python/Pyth0004.htm Quelle]). | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | section 4 | ||
+ | EXAM | ||
+ | a = 0 | ||
+ | print "press 1 for addition" | ||
+ | print "press 2 for subtraction" | ||
+ | print "press 3 for multiplication" | ||
+ | print "press 4 for divsion" | ||
+ | a = input ("operation:") | ||
+ | if a == 1: | ||
+ | n = input("Number: ") | ||
+ | b = input("number: ") | ||
+ | y = n + b | ||
+ | print n, "+", b, "=", y | ||
+ | if a == 2: | ||
+ | n = input("Number: ") | ||
+ | b = input("number: ") | ||
+ | y = n - b | ||
+ | print n, "-", b, "=", y | ||
+ | if a == 3: | ||
+ | n = input("Number: ") | ||
+ | b = input("number: ") | ||
+ | y = n * b | ||
+ | print n, "*", b, "=", y | ||
+ | if a == 4: | ||
+ | n = input("Number: ") | ||
+ | b = input("number: ") | ||
+ | y = n / b | ||
+ | print n, "/", b, "=", | ||
+ | try to figure out what each line of code does i will leave the answer at the bottom if you didn't | ||
+ | get it look over previous sections again. | ||
+ | |||
+ | |||
+ | |||
+ | its a simple calculator to get this i made a simple menu out of if statements and if you select any of 4 number to the menu it will take you to the next step the step to do the operation you chose because each if picks up on a number and that starts the operation | ||
+ | |||
+ | |||
+ | |||
+ | </pre> | ||
Version vom 17. April 2008, 20:02 Uhr
Exzerpte aus: Edmund Husserl: Philosophie der Arithmetik. Hrsg. von Lothar Eley. Den Haag 1970
Zur Logik der Zeichen (Semiotik). S. 340-373
Zur Vorbereitung: einfache Subtraktion in JavaScript
Einfache arithmetische Operationen in Python (Quelle).
section 4 EXAM a = 0 print "press 1 for addition" print "press 2 for subtraction" print "press 3 for multiplication" print "press 4 for divsion" a = input ("operation:") if a == 1: n = input("Number: ") b = input("number: ") y = n + b print n, "+", b, "=", y if a == 2: n = input("Number: ") b = input("number: ") y = n - b print n, "-", b, "=", y if a == 3: n = input("Number: ") b = input("number: ") y = n * b print n, "*", b, "=", y if a == 4: n = input("Number: ") b = input("number: ") y = n / b print n, "/", b, "=", try to figure out what each line of code does i will leave the answer at the bottom if you didn't get it look over previous sections again. its a simple calculator to get this i made a simple menu out of if statements and if you select any of 4 number to the menu it will take you to the next step the step to do the operation you chose because each if picks up on a number and that starts the operation
Die wunderbarste geistige Maschine, die je entstand (Code)
Warum jener mechanische Prozeß richtige Ergebnisse erzeugt (Code)
Dergleichen mechanische Operationen mit bloßen Schriftzeichen (Code)
zurück zu: Code: Kommunikation und Kontrolle (Vorlesung Hrachovec, 2007/08)