Compare commits
No commits in common. "9d284449dd9a2970cf6d91223f79376f1b3c9949" and "55007bf97f4b4c4c51f2e944c7cc645e741a2f18" have entirely different histories.
9d284449dd
...
55007bf97f
@ -4,11 +4,12 @@
|
|||||||
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.
|
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.
|
2. Represent the flowchart from problem 1 as pseudocode.
|
||||||
|
|
||||||
## Flowchart
|
## Diagram
|
||||||
```d2
|
```d2
|
||||||
vars: {
|
vars: {
|
||||||
d2-config: {
|
d2-config: {
|
||||||
dark-theme-id: 200
|
dark-theme-id: 200
|
||||||
|
layout-engine: elk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
grid-columns: 3
|
grid-columns: 3
|
||||||
@ -74,46 +75,3 @@ end: {
|
|||||||
|
|
||||||
4. Represent the flowchart from problem 3 as pseudocode.
|
4. Represent the flowchart from problem 3 as pseudocode.
|
||||||
|
|
||||||
%%
|
|
||||||
Assuming a step distance of 2.5 feet.
|
|
||||||
|
|
||||||
Shady path:
|
|
||||||
Turn to 270 degrees
|
|
||||||
Walk 112 steps
|
|
||||||
Turn to 225 degrees
|
|
||||||
Walk 124 steps
|
|
||||||
Turn to 270 degrees
|
|
||||||
Walk 361 steps
|
|
||||||
Turn to 0 degrees
|
|
||||||
Walk 176 steps
|
|
||||||
Turn to 270 degrees
|
|
||||||
Walk 62 steps
|
|
||||||
|
|
||||||
|
|
||||||
Sunny path:
|
|
||||||
Turn to 270 degrees
|
|
||||||
Walk 73 steps
|
|
||||||
Turn to 0 degrees
|
|
||||||
Walk 94 steps
|
|
||||||
Turn to 275 degrees
|
|
||||||
Walk 467 steps
|
|
||||||
Turn to 180 degrees
|
|
||||||
Walk 86 steps
|
|
||||||
Turn to 270 degrees
|
|
||||||
Walk 80 steps
|
|
||||||
|
|
||||||
%%
|
|
||||||
|
|
||||||
## Flowchart
|
|
||||||
```d2
|
|
||||||
vars: {
|
|
||||||
d2-config: {
|
|
||||||
dark-theme-id: 200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
classes: {
|
|
||||||
}
|
|
||||||
beginning: {shape: oval}
|
|
||||||
|
|
||||||
end: {shape: oval}
|
|
||||||
```
|
|
Loading…
x
Reference in New Issue
Block a user