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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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