Guest User

Untitled

a guest
Jul 16th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. Calculator with Sunshine Toast.
  2.  
  3. This recipe creates a simple 4 function calculator, that gets a number from the user, an operator, and another number; and returns a properly calculated result. By Kyle Korrigan and Adam Goldberg.
  4.  
  5. Ingredients.
  6. soy beans
  7. water
  8. lima beans
  9. 42 g paprika
  10. 47 g salt
  11. 43 g pepper
  12.  
  13. Method.
  14. Take soy beans from refrigerator.
  15. Take water from refrigerator.
  16. Take lima beans from refrigerator.
  17. //Handle input
  18. Put paprika into mixing bowl.
  19. Remove water from mixing bowl.
  20. //puts paprika (ascii value of *) into the bowl, and subtracts water from it; storing result
  21. Put salt into mixing bowl.
  22. Remove water from mixing bowl.
  23. //puts salt (ascii value of /) into the bowl, and subtracts water from it; storing result
  24. Put pepper into mixing bowl.
  25. Remove water from mixing bowl.
  26. //puts pepper (ascii value of +) into the bowl, and subtracts water from it; storing result
  27. //mixing bowl looks like: [pepper, salt, paprika]
  28. Put lima beans into mixing bowl.
  29. Put soy beans into mixing bowl.
  30. //mixing bowl looks like: [soy beans, lima beans, pepper, salt, paprika]
  31. Serve with Sunshine Toast.
  32. //pass a copy of the mixing bowl to the Sunshine Toast to do computation
  33. Fold lima beans into the mixing bowl.
  34. //remove answer from the mixing bowl
  35. Put lima beans into 2nd mixing bowl.
  36. //transfer answer to separate mixing bowl so we can move it to a baking dish for output
  37. Pour contents of 2nd mixing bowl into the baking dish.
  38.  
  39. Serves 1.
  40.  
  41. Sunshine Toast.
  42.  
  43. This recipe handles the calculations for the main recipe.
  44.  
  45. Ingredients.
  46. soy beans
  47. lima beans
  48. eggs
  49. butter
  50. toast
  51. //mixing bowl passed from "Calculator with Sunshine Toast" looks like: [soy beans, lima beans, pepper, salt, paprika]
  52.  
  53. Method.
  54. Fold soy beans into the mixing bowl.
  55. Fold lima beans into the mixing bowl.
  56. Fold eggs into the mixing bowl.
  57. Fold butter into the mixing bowl.
  58. Fold toast into the mixing bowl.
  59. //pull from read only mixing bowl and store in appropriate values
  60. Put lima beans into the mixing bowl.
  61. //put the number to be computed into the bowl
  62. //mixing bowl looks like: [lima beans]
  63.  
  64. Beat eggs.
  65. Melt butter.
  66. Whisk toast.
  67. Remove soy beans from the mixing bowl.
  68. //do subtraction, leave the result in the mixing bowl
  69. Refrigerate.
  70. Whisk toast until Whisked.
  71. Add soy beans to the mixing bowl.
  72. //do addition, leave the result in the mixing bowl
  73. Refrigerate.
  74. Melt butter until melted.
  75. Divide soy beans into the mixing bowl.
  76. //do division, leave the result in the mixing bowl
  77. Refrigerate.
  78. Beat eggs until beaten.
  79. Combine soy beans into the mixing bowl.
  80. //do multiplication, leave the result in the mixing bowl
  81. Refrigerate.
Add Comment
Please, Sign In to add comment