Write a pseudocode to represent the logic of a program that allows the user to enter the rainfall for 12 months (January to December). The output will consist of the total rainfall for the year and the average rainfall for the 12 months.

2 answers

total=0
for i=1..12
read val(i)
total += val(i)
end for

avg = total/12

print total,avg
A. Write pseudocode to show a program logic that performs the evaluation of clients for discount qualification.