Hydrology, Biology

Assignment Help:

Hydrology

Background:

Hydrology is the study of the movement and distribution of water resources. This is an important field of study in a dry climate like Utah. Although controversy surrounded the construction and filling of the Glen Canyon Dam, the dam has a fascinating impact on southern Utah and Arizona. The surface area of Lake Powell is (the lake behind the dam) 966 square miles and it has almost 2000 miles of shoreline. The capacity is 24,000,000 acre feet (EACH acre foot is the water it takes to cover one acre one foot deep; this is about 326,000 gallons or about 1,233,000 liters). In order to make things simple we will use the abbreviation MAF for a Million Acre Feet.
Naturally you cannot fill a 24 MAF reservoir like Lake Powell overnight. Nor can you simply shut off all of the downstream flow for a few years, while the reservoir fills. About 13.5 MAF flow into Lake Powell every year. By law, at least 7.5 MAF must be allowed to flow out, leaving 6 MAF  to fill the lake with ON AVERAGE.  Unfortunately dry climates like Utah rarely behave like the average (it’s been suggested that every year is below average). In the case of Lake Powell the annual inflow can be anywhere between about 22 MAF and 4 MAF. Your task is to write a program that will help us calculate how quickly a reservoir like Lake Powell might take to fill. Do this by simulating the random inflow and specific outflow for each year until you reach capacity. Simulate this filling process 10 times and report the maximum, average and minimum number of years required to achieve the objective.

Requirements: Design, implement and test a C++ program that:

•    prompts the user for:

  1. The name of the reservoir
  2. The capacity of the reservoir in MAF (Millions of Acre Feet)
  3. The minimum inflow in MAF
  4. The maximum inflow in MAF
  5. The required outflow in MAF

•    simulates future years in order to predict when the reservoir will be full

  1. To make a single prediction, simulate as many years as needed to accumulate the amount of water needed to fill the reservoir.
  2. For each year, simulate the inflow randomly between the minimum and maximum inflow given by the user.
  3. Make 10 predictions using the same input data (i.e., without re-prompting the user) but using different random numbers to determine the inflow.
  4. Print the results of the simulations as each completes.
  5. Be careful with the required outflow.  Note that if the inflow plus the current contents of the reservoir is less than the required outflow, you can release only that total. The reservoir can not go negative.
  6. Report the average, lowest, and highest number of years needed based on the 10 predictions.

•    When the simulations are done, give the user the option to simulate another reservoir.


Related Discussions:- Hydrology

Define the absorption of vitamin a, Define the Absorption of Vitamin A? ...

Define the Absorption of Vitamin A? Vitamin A and carotenoid tend to aggregate with lipids into globules, which then pass into the small intestine. Dietary vitamin A (retinol)

Explain about oral glucose tolerance test, Q. Explain about Oral Glucose To...

Q. Explain about Oral Glucose Tolerance Test? This is most commonly used diagnostic test particularly for identifying new and ‘at risk' individua1s.Thi.s test is carried out af

How could an adult lose billions of cells, How can an adult lose billions o...

How can an adult lose billions of cells from all parts of the body each day and still survive?

What do you mean by echinodermata, Q. What do you mean by Echinodermata? ...

Q. What do you mean by Echinodermata? You will recall that Pliylum Echinodermata includes spiny skinned animals which are exclusively marine (Gr, echinus : spiny; derma: ski

Define about the term indicators, Define about the term Indicators? The...

Define about the term Indicators? The easiest way to determine when the reaction is complete is by using indicators. An indicator is a compound that has a physical property (us

Counselling for day to day management, Q. Counselling for day to day Manage...

Q. Counselling for day to day Management? As we know that diabetes is a chronic disease, a major part of its control requires counselling the patient and his family for day to

Enumerate about the wisconsin card sorting test, Enumerate about the Wiscon...

Enumerate about the Wisconsin Card Sorting Test Verbal memory, non verbal memory etc. are tested through the presentation of stimuli such as verbal learning test, selective rem

Various modalities available for sterility assurance, Q. Enlist the various...

Q. Enlist the various modalities available for sterility assurance? Various modalities available for sterility assurance are a) Prevention of overloading b) Chemical indi

Etiological factor of peptic ulcer, Q. Etiological factor of peptic ulcer? ...

Q. Etiological factor of peptic ulcer? Peptic ulcer results when the neural and hormonal abnormality disrupts the factors that normally maintain mucosal integrity and permit pr

Write Your Message!

Captcha
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