Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could you please help me to create a Flowgorithm (Flowchart only from Flowgorithm software) for the following conditions. I found one in your database. It

Could you please help me to create a Flowgorithm (Flowchart only from Flowgorithm software) for the following conditions. I found one in your database. It doesnt work. Please help me Flowgorithm that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with highest and lowest amount. 1) Create a Flowgorithm program as follows. a. Include the usual comment lines for Author, Date and Description. b. Declare a Real array for the rainfall amounts, with an array size of 12. Also, declare Real variables for total rainfall (and initialize it to 0), average rainfall, the highest amount of rainfall, and the lowest amount of rainfall. c. Declare Integer variables for the array index, the month number of the highest rainfall, and the month number for the lowest rainfall, and initialize the last two to 0. d. Create a For loop, with the index from 0 to 11, and inside the loop: i. Prompt the user to enter the monthly rainfall amount, and store it in the correct array element. Your prompt should include the month number as 1 to 12 (so you need to display the month number + 1). ii. Add the amount entered to the total rainfall amount. iii. If the index is 0, you should set the highest and lowest rainfall amounts to the number entered, so that you have a reference for the other months. iv. If the amount is greater than the current highest amount, reset the highest amount to the current amount, and set the month of highest rainfall to the current index. Likewise, if the amount is lower than the current lowest amount, reset the new lowest amount, and set the month of the lowest rainfall to the current index. e. When the loop exits, compute the average by dividing the total rainfall amount by 12. Then display the total and average rainfall, the month number with the highest rainfall and that amount, and the month number with the lowest and that amount. NOTE: You do not have to NAME the months; the number of the months will do.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

6. Choose an appropriate organizational strategy for your speech

Answered: 1 week ago