Compare commits
No commits in common. "3c42400e0b9465496336f120d0535b4a6b8e5560" and "655e2af4e721d57c9f35f9c5acd47585433953ca" have entirely different histories.
3c42400e0b
...
655e2af4e7
3
.obsidian/community-plugins.json
vendored
3
.obsidian/community-plugins.json
vendored
@ -1,4 +1,3 @@
|
|||||||
[
|
[
|
||||||
"obsidian-git",
|
"obsidian-git"
|
||||||
"d2-obsidian"
|
|
||||||
]
|
]
|
@ -1,42 +0,0 @@
|
|||||||
# Banana Cake
|
|
||||||
## Instructions
|
|
||||||
|
|
||||||
1. Assume an action set of {add \<ingredient>, stir, bake, cool}. Draw a flowchart, using the paradigm discussed in class, to show the process of baking a banana cake. Use Google to find a typical list of ingredients.
|
|
||||||
2. Represent the flowchart from problem 1 as pseudocode.
|
|
||||||
|
|
||||||
## Diagram
|
|
||||||
```d2
|
|
||||||
vars: {
|
|
||||||
d2-config: {
|
|
||||||
dark-theme-id: 200
|
|
||||||
layout-engine: elk
|
|
||||||
}
|
|
||||||
}
|
|
||||||
grid-columns: 3
|
|
||||||
|
|
||||||
begin: {
|
|
||||||
shape: oval
|
|
||||||
# near: top-left
|
|
||||||
}
|
|
||||||
|
|
||||||
begin -> add 3c flour\
|
|
||||||
-> add 1 1/2 tsp baking soda\
|
|
||||||
-> add 1/2 tsp cinnamon\
|
|
||||||
-> add 1/2 tsp salt\
|
|
||||||
-> stir\
|
|
||||||
-> add 3 mashed bananas\
|
|
||||||
-> add 1 tsp lemon juice\
|
|
||||||
-> stir again\
|
|
||||||
-> add 3 eggs\
|
|
||||||
-> add 2tsp vanilla extract\
|
|
||||||
-> stir a final time\
|
|
||||||
-> bake @ 350f for 50 min\
|
|
||||||
-> let cool for 1 hour\
|
|
||||||
-> end
|
|
||||||
end: {
|
|
||||||
shape: oval
|
|
||||||
# near: bottom-right
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Pseudocode
|
|
Loading…
x
Reference in New Issue
Block a user