PRLD 5121_Darushna Lerlynn_Padayachee_20112474_BCAD1Group3.docx

This preview shows page 1 - 6 out of 6 pages.

IIE VARSITY COLEEGE VCCT Student number: 20112474 Name: Darushna Lerlynn Surname: Padayachee SUBJECT: PRld 5121 COURSE: BCAD YEAR 1 GROUP 3 LECTURER: dr patricia harpur Ice task: Chapter 6 1a) Pseudocode start Declarations num item num SIZE = 5 num sub num team_number[SIZE] = 1,2,3,4,5 num FINISH = 999 string team_name [5] = “Goal Getters”,”The Force”,”Top Guns”,”Shooting Stars”,”Midfield Monsters” getReady() while item <> FINISH findName() endwhile finish() stop getReady() output “Enter Team Number” input item return
findName() sub = 0 while sub < SIZE if item = team_number[sub] then output “The player’s team name is”, team_name[then] endif sub= sub + 1 endwhile return finishUp() output “End of Job” return Flowchart:
1b)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture