Professional Documents
Culture Documents
I- St. Aquinas
1. A program that will output the sum and average of 5 numbers namely X1, X2, X3, X4, and X5.
Your program will accept zero and negative numbers.
PSEUDO CODE
1. Start
FLOWCHART
START
S=0
End
PSEUDE CODE
1. Start
2. Input the base of a trapezoid and call it BASE.
3. Check if BASE is negative or zero, if so go back to step 2, otherwise.
4. Input the height of a trapezoid and call it HEIGHT.
5. Check if HEIGHT is negative or zero, if so go back to step 4, otherwise.
2 (HEIGHT)
7. Output Area
8. End
FLOWCHART
START
Input base
Input height
End
True