confusedndazed 0 Light Poster

Hello all, I have made some adjustments to my last two posts and combined them here to ensure it makes sense. I am supposed to use a top down design along with a pseudocode for a program that lists an array of numbers, computes the average, and outputs the results. Please tell me what corrections need to be made. Thanks in advance!!

Process
Display the program title- “Average Age of AD Navy personnel”
Get Navy Personnel Age
Display Age
Calculate Average
Display Age total
Input
Current Age of Personnel
Output
Average Age of Personnel
Main module
Declare age as integer 
Declare sum of ages as float
Declare number of ages entered as integer
Declare Average Age as float

Write “AD Navy Personnel Program”

Call Personnel Age
Call Calculate Average Age
Call Display Average Age

End program

End main module Program



Declare Age[50] as integer
Declare Sum, Average as float
Declare I as integer
Set Sum = 0
For (I = 0; I < 50; I++)
Write “Enter age of Active Duty Navy personnel” (I+1)
Input Age[I]
If ( Age [I] >=18 )
Set sum = sum + Age[I]
Else
Set I=I-1 // the same element the Age array will be read
End For
Set Average = Sum/50
For (I = 0; I < 50; I++)
Write “Age of User” + (I+1) + “ is “ Age[I]
End For
Write “The current average age of Active Duty navy personnel is ” + Average