Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

 Introduction to Software Development

Using only Flowgorithm program. Please do not answer if you do not know the answer or you are nor sure ....

I need only the Flowgorithm program.

Rainfall statistics.

Design a program that let 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 the highest and lowest amounts.

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.

f. Run the program. The program should ask you to enter the amount of rainfall for 12 months. Then it displays the total and average rainfall, the highest month and its amount, and the lowest month and its amount. If there are any errors, recheck the instructions and correct them, then resave the file.

g. The screen shot below shows the last part of the Console window when the program was run with the amounts 30, 25, 20, 15, 10, 5, 60, 55, 50, 45, 40, 35. (Note that the index values were increased by 1 when displaying month numbers to the user.)

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93113174

Have any Question?


Related Questions in Computer Engineering

You all work in or know of people who work in enterprise it

You all work in or know of people who work in enterprise IT environments Maintaining the enterprise security posture, legal risk, and security is constantly changing. What makes it so difficult to maintain information se ...

Answer the following question take a cube graph q3 and add

Answer the following Question : Take a cube graph Q3 and add both face diagonals to one of the cube faces. The resulting graph is not planar, so by Kuratowski's theorem it contains a subdivision of K5 or of K3,3. Draw th ...

Question part 1 analyze the case study titled vodafone a

Question: Part 1: Analyze the case study titled "Vodafone: A Giant Global ERP Implementation" (below) For this assignment, you will need to: 1. analyze and discuss the central issue(s) faced by Vodafone, including the co ...

C programmingnbsphelp with a program positivec that include

***C PROGRAMMING***  Help with a program positive.c that include the following function: void extract(int *a, int n, int *positive, int *size);  The function should use pointer arithmetic, not subscripting. The extract f ...

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks

Patient patientid familyname givenname address suburb state

PATIENT (PatientID, FamilyName, GivenName, Address, Suburb, State, PostCode) DOCTOR (ProviderNo, Name) ITEM (ItemNo, Description, Fee) ACCOUNT (AccountNo, ProviderNo, PatientID, TreatmentDate) ACCOUNTLINE (AccountNo, Ite ...

Task 1create an array that holds a 20 random integers

Task 1: Create an Array that holds a 20 random integers between 1-50. Create an iterator that will return the memory address and value for each integer present in the Array. Task 2: Update Assignment 1 Task 2. Pass the v ...

Case studyjulian lim purchased a put option at the cost of

Case study: Julian Lim purchased a put option at the cost of $0.30 each. The put option has a strike price of S$3.00 and the underlying stock is currently trading at S$3.50. Julian Lim bought 100 shares. Question: Determ ...

One of the authors received a credit card bill for 2988 but

One of the authors received a credit card bill for 2,988, but it included a charge of 1,834 that was not valid. Find the values of the absolute and relative errors the absolute value is 1,834 what is the relative errors?

Requirementsin this assignment you will implement a

Requirements In this assignment, you will implement a lightweight version of an ArrayList class. You may refer to the Java code and documentation for guidance, but you must write the implementation yourself. Additionally ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As