Post on 03-Jan-2016
description
Jeff BrownUnit 1 Lab 1
Class # ET2560T
Task 1: Make Pseudo algorithm & flowchart to list even numbers between 20 and 40.
Algorithm:
1. Start
2. Output “List of Even Numbers 20 to 40”
3. Put 20 in number
4. If number divide by 2 has remainder 1 go to step 6
5. Output number
6. Number + 1
7. If number is less than 41 go to step 4
8. End
Task 2: Create Pseudo flowchart from algorithm to decide the fastest time of two racers.
Algorithm:
1. Output “Enter Bobby’s Time”
2. Put Bobby’s Time in number
3. Output “Enter Alice’s Time”
4. Put Alice’s Time in number
5. If Alice = Bobby, Output “Tie”
6. If Bobby < Alice, Output “Bobby”
7. If Alice < Bobby, Output “Alice”
8. End