Simple pseudocode exampleThe following example shows how to code a simple program in pseudocode.
A program is required to calculate the annual cost of running a motor car. Costs include monthly instalments, annual fuel cost, and insurance. The annual insurance rate is 3% of the car's value. Required input values are:
Answer - Pseudocode Begin input carValue, monthlyInstalment, annualFuelCost annCost = monthlyInstalment * 12 insurance = carValue * 0.03 totalCost = annCost + insurance + annualFuelCost Ouput"Total annual cost of running the car", totalCost end |
Flow ChartsTasks1. Download this document about flowcharts and Pseudo code. Read it , use it & reuse it!
2. Write the pseudo code describing for a program that will...
3. Create a Flow chart of this Algorithm using this site: |