At the end of this lesson, you will be able to:
- make Pseudo-code
- format a string to look like money
- review using constants
- review flow-charts
- go over "Pseudo-code", Chapter 2
- Computer Based Problem Solving
- go over 6 Steps to Solve Computer Problem
- this is now your model for creating a program
- in Swift, this is how you format a variable to look like money
- String(format: "The pizza costs: $%.02f", cost)
- print('The cost is: ' + '${:,.2f}'.format(cost)) -> (this is for Python)
- work through "pizza" program to create:
- top-down design
- flow-chart
- pseudo-code
- create the top-down, flow-chart and pseudo-code for:
- the cost of making a pizza is:
- labour cost is $0.75 / pizza, regardless of the size
- rent on the shop is $1.00 / pizza, regardless of the size
- materials are $0.50 / diameter inch of pizza
- create a program that calculates the total cost (don't forget HST) for a given diameter pizza.
- once the design document is done, show me
- it should look like this