Programming Assignment 2

profile@Dash01
project__flowchart.pdf

main()

Declare numbers[SIZE], high, low, average, total = 0

End

Set index =0

index <= SIZE - 1

Add 1 to index True

False

Set index =0

index <= SIZE - 1

Add 1 to index

True

False

Display Enter number ,

index + 1, :

Constant SIZE = 20

Input numbers[index]

Call showStats(high, low, total, average)

Set total = total + numbers[index]

index == 0

Set low = numbers[index]

Set high = numbers[index]

low < numbers[index

Set low = numbers[index]

high > numbers[index

Set high = numbers[index]

True

True TrueFalse

False False

showStats(high, low, total, average)

Display High number is: ,

high

Display Low number is: , low

Display Total of numbers is: ,

total

Display Average of numbers is: ,

average

End

Set average = total / SIZE

  • Visio Drawing in %1!s!
    • Page-1