Created
March 12, 2012 04:52
-
-
Save nicopaez/2019886 to your computer and use it in GitHub Desktop.
Trabajo práctico N° 0, Tema A, Primer Cuatrimestre 2012, Algoritmos y Programación 3, FIUBA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|huevo mostaza hamburguesa| | |
huevo := Huevo new. | |
huevo calorias = 10 ifTrue: [ Transcript show: 'Prueba 1 OK'; cr.]. | |
mostaza := Mostaza new. | |
mostaza calorias =30 ifTrue: [ Transcript show: 'Prueba 2 OK'; cr.]. | |
hamburguesa := Hamburguesa new. | |
hamburguesa calorias =100 ifTrue: [ Transcript show: 'Prueba 3 OK'; cr.]. | |
hamburguesa agregar: huevo. | |
hamburguesa calorias =110 ifTrue: [ Transcript show: 'Prueba 4 OK'; cr.]. | |
hamburguesa agregar: mostaza. | |
hamburguesa calorias =140 ifTrue: [ Transcript show: 'Prueba 5 OK'; cr.]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment