Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Biology Expert

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.

Biology, Academics

  • Category:- Biology
  • Reference No.:- M9522082

Have any Question?


Related Questions in Biology

Use of molecular tools and bioinforrnatics in the diagnosis

Use of Molecular Tools and Bioinforrnatics in the Diagnosis Characterization of Enteric Pathogens from a Case Study Purpose: The purpose of this project is to familiarize the student with modern molecular tools and bioin ...

What is the phenotypic ratio for the offspring of a mother

What is the phenotypic ratio for the offspring of a mother who is homozygous dominant for blonde hair and a blonde-haired father who is heterozygous.

Question summaryfor readability please be sure to

Question: Summary For readability, please be sure to double-space your assignments. A new wild strain of nopal cactus has been identified as having remarkable promise to solve the international dietary manganese deficit ...

Title titer mtl what do you mean when you refer to the

Title Titer MTL: what do you mean when you refer to the burst size of a phage? How will burst size affect your Titer?

Question all cancers are characterized by uncontrollable

Question: All cancers are characterized by uncontrollable cell growth and division, and when untreated, may be fatal. Cancers that occur in childhood are usually more malignant than those developed later in life. 1) Why ...

Question 1go outside during daylight hours to a natural or

Question 1. Go outside during daylight hours to a natural or semi-natural space (e.g., Burton's Pond, an urban park, your backyard). Sit still for 20 minutes and closely observe the plants and animals around you. Describ ...

Why soap changes the surface tension of waterand why adding

Why soap changes the surface tension of water? And why adding water into penny, the average of water drops in 90oC temperature water is less than average of water drops in room temperature

Case study question -case study - mary 21 years old

Case Study Question - Case Study - Mary, 21 years old, presented to the hospital emergency department with an infected laceration on her left foot. Mary was at a beach resort four days ago, when she trod on a broken glas ...

The current scientific defination of standard temp and

The current scientific defination of standard temp and pressure (STP) is: 0 degrees C and 1.00 bar pressure of a gas, using ideal gas law calculate the volume In L occupied by 1 mol of an ideal gas under these condition( ...

What are the equations for molarity molality density ppm

What are the equations for Molarity, molality, density, ppm, ppb, mass percent, Volume percent, and mole percent?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As