create an algorithm, owchart, and pseudocode for a solution of the following problem. This solution will include the use of arrays needed to complete all parts of the logic. You have requested to develop a program that will record and process the rainfall totals of a 12 month period. You would use an array to store each months total. Once all 12 months amounts are entered then your solution need to process this array to complete the following requirements: The user wants to know the total rainfall for the year. Then you will need to calculate the average monthly rainfall You will then need to nd the month with the most rainfall and the month with the least amount of rainfall

1 answer

sum=0
max=0
min=9999

for i=1,12
  read amount
  month[i] = amount
  if amount < min then min = amount
  if amount > max then max = amount
  sum += amount
end for

avg = sum/12