Pseudocode to count of the number of players registered for each team: start Dec
ID: 3632828 • Letter: P
Question
Pseudocode to count of the number of players registered for each team:start
Declartions
num i
num SIZE = 5
num item[SIZE]
num count
num FINISH=999
num team_number[SIZE] = 1,2,3,4,5
string team_name[5] = “Goal Getters”,”The Force”,”Top Guns”,
”Shooting Stars”,”Midfield Monsters”
getReady()
while item <> FINISH
findName()
endwhile
finishUp()
stop
getReady()
for count = 0 to 4 step 1
output “Enter Last Team Number “
i=0
input item[i]
i++;
endfor
return
findName()
for count = 0 to 4 step1
i = 0;
output “The total number of players registered for each team”,item[i]
endfor
finishUp()
output “End of job”
return
Note
Each program should include four modules as follows:
1. A main module to drive the program.
2. A module to accept user input, and create input/output files.
3. A module to perform the task(s) indicated by the program. You must use one or more arrays!
4. A module to indicate the program is over
Explanation / Answer
a. Pseudocode to accept a player’s team number and display the player’s team name: start Declartions 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 subRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.