Husserl über Zeichen und formale Systeme (Code): Unterschied zwischen den Versionen

Aus Philo Wiki
Wechseln zu:Navigation, Suche
(python)
(corr)
Zeile 40: Zeile 40:
 
try to figure out what each line of code does i will leave the answer at the bottom if you didn't
 
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.
 
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>
 
</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.


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)