Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Create an algorithm, flowchart, and pseudocode for a solution of the following problem. This solution will include the use of a...Asked by Holly
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
Answers
Answered by
Steve
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
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
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.