Skip to content

Instantly share code, notes, and snippets.

@nicopaez
Created March 12, 2012 04:52
Show Gist options
  • Save nicopaez/2019886 to your computer and use it in GitHub Desktop.
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
|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