Leading on from the work we did last term and this week. We created a program to solve the calorie counter problem.
Analysis
Inputs
- calories in porridge
- calories in toast
- calories in marmalde
- calories in coffee
Process
- add all calories and store in total
Output
- The total number of calories in breakfast
Design
- Get the number of calories in porridge
- Get the number of calories in of toast
- Get the number of calories in of marmalade
- Get the number of calories in of coffee
- Total = Porridge + toast + marmalade + coffee
- Display the total number of calories