Compute and return to main totalrainfall and averagerainfall

Assignment Help Basic Computer Science
Reference no: EM13308395

Write a modular program (functions) that analyzes a year's worth of rainfall data. In addtioin to main(), the program should have a getData function that reads the 12 month rain data from a data file and stores it in an array. Set up a parralel array to store the names of the months which are in a different data file.

It should also have two value-returning functions that compute and return to main the totalRainfall and averageRainfall.

This information should be used either by main or by a displayReport function called by main to print a summary rainfall report similar to the following:

2012 Rain Report for Neversnows County

Total rainfall: 23.19 inches

Average monthly Rainfall: March 1.93 inches

 

Reference no: EM13308395

Questions Cloud

Calculate the velocity of a wave on this bungee cord : A bungee cord is stretched between two poles with a force of 357 N. What is the velocity of a wave on this bungee cord
Determine the buoyant force acting on the object : An object falls off of a pier and into the ocean (sea water) where it displaces a total volume of 1.6 cubic meters of sea water. What is the buoyant force acting on the object
Design a program that prompts the user to enter a string : Using Python version 2.7, design a program that prompts the user to enter a string.The program should then display the number of vowels and the number of consonants in the string. I am absolutely lost and don't even know how to start, any assistan..
Find what would be the minimum number of truckloads : Soil is excavated from a borrow to construct an embankment with a net volume of 50,000 cy with 95% of Modified Proctor maximum dry density of 110 pcf with a Modified Proctor optimum water content of 8%.
Compute and return to main totalrainfall and averagerainfall : It should also have two value-returning functions that compute and return to main the totalRainfall and averageRainfall.
Determine modulus of elasticity of concrete by aci formula : Determine the Modulus of Elasticity of Concrete by the ACI formula for a concrete cylinder that has a unit weight of 120pcf (1920kg/m^3) and a compressive strength of 3000 psi (21MPa).
Make a spreadsheet to compare e-commerce sites : create a spreadsheet to compare the three identified e-commerce hosting sites and the e-commerce hosting site that you find • prepare a PowerPoint presentation that represents the presentation you would give to management explaining your selection..
Identify an e-commerce website whose interface has challenge : Identify an e-commerce website whose interface has some design challenges. Evaluate the three parts of the user interface (navigation, input, and output)
What is the importance of cookies on security : What is the importance of cookies on security, page lifecycle management, and usability?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Remember from lecture that using

Remember from lecture that using { and } creates a block of code within the condition instead of just one line.Also, not the use of single quotes instead of double quotes. (Double quotes signify a literal string while single quotes signify a literal ..

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  Create a new group called mygroup

Directions: As you complete each of the following steps, keep track of what occurs at each point, including what you type, the output given, and if you experience any errors.

  Design a program that will allow a user to input a list

Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who lives in Texas

  What is the chance of success on first attempt

What is the chance of success on the first attempt? What is the probability of exactly k collisions and then a success?

  How can we use both karnaugh maps

How can we use both Karnaugh maps and DeMorgan equivalences to better understand systems we build?

  Explaining statement for security policy

Write a statement for security policy for the following:Let LAN for small 100-person business, Pixel Inc. Business occupies one floor in office building. Everybody has a computer on his or her desk.

  Compute number of total bits needed to implement cache

Suppose a computer's address size is K bits (using byte addressing), the cache size is k bits (using byte addressing), the cache size is S bytes. Compute the number of total bits needed to implement the cache.

  Write a flowchart with single alternative decision structure

Write a flowchart with a single alternative decision structure that assigns 0 to the variable b and assigns 1 to the variable c it the variable a is less than 10

  Examine the following pseudocode module

Examine the following pseudocode module header and then write a statement that calls the module, passing 8 as an argument. Module showValue Integer values

  Write z schemas defining state of the system card validation

Write Z schemas defining the state of the system, card validation (where the user's identifier is checked) and cash withdrawal.

  Simulating problem for arriving for lunch at restaurant

Customers for lunch arrive into a restaurant at Exponential rate of 10 per hour for seated service and at  Exponential rate of 15 per hour for buffet. Simulate this problem for 8 hours using minutes as the basic time units.

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