Design a program that let the user enter the total

Assignment Help Computer Engineering
Reference no: EM132125708

 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.)

Reference no: EM132125708

Questions Cloud

Review problem related to airlines : The directors of Ace Airlines have decided to incentivize their 1,000 employees by issuing every one of them 200 shares of stock.
Display the appropriate greeting for the users choice : SDEV 140 : Include the comment lines for Author, Date and Description. Display the menu presented in Exercise 1.
Construct an e-r diagram for the registrars office : The enrollment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modeled.
Show all workings including the use of the poly functions : Show all workings including the use of the poly and horner functions
Design a program that let the user enter the total : SDEV 140 : Design a program that let the user enter the total rainfall for each of 12 months into an array.
How many entries will be considered before discovering : How many entries will be considered before discovering that the entry is not present? (Note that the list is in alphabetical order.)
Find the full names of supervisors together with the total : Find the full names of supervisors together with the total number of employees directly supervised by each one of them.
Analyze the complexity of is-perfectly-balanced : We say that a binary tree T is perfectly balanced if, for each node n in T , the number of keys in the left and right subtrees of n differ at most by 1.
Create a program for a windows company : The program should display the total amount a customer owes, given the number of windows ordered and the price per window.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the hacker ethic and hacker manifesto

explain the hacker ethic and hacker manifesto. Give your opinion as to why hackers do not consider themselves to be criminals

  Explain what the errors are

The following fragment of 68000 assembly language has several serious errors, Explain what the errors are. Explain how you would correct the errors.

  What do mean by functional dependency

Why is this table NOT in First Normal Form (1NF) normalization? What can you do to put it in 1NF.

  What restrictions must be imposed

Free Speech Online Some feel that there is too much objectionable material allowed on the Internet, whereas others argue that the Internet must be completely censored.what restrictions must be imposed.

  What function does the countermeasure serve

What countermeasures have you used (or heard of) to secure those domains? What function does the countermeasure serve?

  How the floating point value would be stored using ieee

Show how the floating point value (1/16) would be stored using IEEE-754 single precision (be sure to indicate the sign bit, the exponent, and the significand fields).

  Which door would lead the boys to safety

After a quick search the boys find three doors, the first one red, the second one blue , and the third one green.

  Write a program that displays all integers

Write a program that displays all integers between low and high that are the sum of the cube of their digits.

  Assess the importance of critical path in project management

Compare the information that one receives from a Gantt chart, versus that of a PERT diagram. Assess the importance of the critical path in project management.

  Create a data model that site needs to support its business

Create a data model that the site needs to support its business process. Include entities to show what types of information the site needs.

  What is the average access time

The characteristics of a four-level memory hierarchy are shown below: What is the average access time?

  Write new server and client programs and probe and sampler

Write new server and client programs, Probe and Sampler, that use our Server and Client classes, respectively.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd