N5 – Input Process Output

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

  1. Get the number of calories in porridge
  2. Get the number of calories in of toast
  3. Get the number of calories in of marmalade
  4. Get the number of calories in of coffee
  5. Total = Porridge + toast + marmalade + coffee
  6. Display the total number of calories