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

  Write an expression that refers to the first element

Given an ArrayList a , write an expression that refers to the first element of the ArrayList.

  Compute pressure if temperature and number of moles produces

A container with the ideal gas, temperature, and number of moles produces what pressure? What occurs if source voltage is restored to 12 V, but resistors change?

  Determine the delays of the carry out

Determine the delays of the carry out bit c48 and the gate complexity, i.e, the numbers of AND, OR and XOR gates needed for implementing the following 48-bit adders.

  A fuel economy study was carried out

A Fuel economy study was carried out for five models of cars. each car was driven 100 miles, and then the model of the car and the number of gallons used were placed in a line of the file Mileage.txt. Table 7.22 shows the data for the entries of t..

  Optional functionality: allow the user to print the report

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock

  Generate profits often referred to as creating

When the output of some units can be used as inputs to othe units, or if two organizations pools markets and expertise that results in lower costs and generate profits it is often referred to as creating?

  Design and test in logic works

Design and test in Logic works

  Write the converse, inverse and contrapositive

Write the converse, inverse and contrapositive for each of the following statement in natural English.

  Determine how many bit strings of length six are present

How many bit strings of length 6 are there? Describe completely. How many bit strings of length 6 are there which begin with 0 and end with a 0?

  Write a java method called smallestindex

write a java method called smallestIndex, which takes as its parameters a 1-d int array and its size, and returns the index variable of the smallest element in the array and the smallest element in the list. Write a java method that uses the metho..

  Compute the cube root

compute the cube root this way: root = -pow(-x, 1./3.);

  Finding different sizes of newspaper for local newspaper

Comprise a specific recommendation regarding how many different sizes newspaper must offer.

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