Practice Exercises
1
.
Think of a complex problem—one that can be broken into many layers of smaller problems. Explain how computational thinking could help you develop a solution to your complex problem.
2
.
Look at the following pseudocode that describes an algorithm to make a peanut butter and jelly sandwich:
- Get the peanut butter.
- Get the jelly.
- Get the bread.
- Open the peanut butter jar.
- Open the jelly jar.
- Open the bread.
- Take out slice of bread.
- Take out another slice of bread.
- Dip the knife into the peanut butter.
- Spread the peanut butter on one slice of bread.
- Dip the knife into the jelly.
- Spread the jelly on the other slice of bread.
- Put the two slices of bread together.
3
.
Research what the Fibonacci number sequence is. Write the pseudocode to compute the nth number in the Fibonacci number sequence. Utilize recursion to model a pattern of computation.
4
.
Create a model that describes the business of running your daily life. Please note that this is not suggesting that you should run your life as a business. Hint: To answer this question, think about the various players, locations, and processes involved in your daily activities and create simple models that mimic the structure provided for the trading business model in the current chapter section.
5
.
Draw an application architecture diagram for a business solution that uses smart contracts for payment and transactions logging purposes. Feel free to leverage some of the figures from this chapter, rather than create something new.