Write 2 user-defined functions for water volume to decrease

Assignment Help Civil Engineering
Reference no: EM13320669

Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time

V(t) = 109 + 108(1 - e-t/100) - rt

where V is the water volume in liters, t is time in days, and r is the town's consumption rate in liters per day. Write two user-defined functions. The first function should define the function V(t) for use with the fzero function. The second function should use fzero to compute how long it will take for the water volume to decrease to x percent of its initial value of 109 L. The inputs to the second function should be x and r. Test your functions for the case where x = 50 percent and r = 107 L/day.

Reference no: EM13320669

Questions Cloud

What is the power this meal produces : A person consumes a meal containing 17 kcal. What is the power this meal produces if it is to be "burned off" due to exercise in 6 hours
What is the change in internal energy of the system : A system consists of 4.0 kg of water at 85 degrees Celsius 35 J of work is done on the system by stirring with a paddle wheel, What is the change in internal energy of the system
What is the period of the pendulum : A simple pendulum is constructed from a mass of 2 kg and a massless string of length 3.5 m. What is the period of the pendulum
What is the energy difference between the levels : The anomalous Zeeman effect is studied in an advanced student laboratory. A spectral lamp is filled with the vapor of an unknown atom. What is the energy difference between the levels
Write 2 user-defined functions for water volume to decrease : Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time
What is the minimum diameter mirror on a telescope : What is the minimum diameter mirror on a telescope that would allow you to see details as small as 4.85 km on the moon some 384000 km away
What is the average emf induced in the coil : A closely wound rectangular coil of 95.0 turns has dimensions of 21.0cm by 48.0cm. What is the average emf induced in the coil
Compute the true static height in a glass tube : Pure water at 50 degrees Fahreneit stands in a glass tube of 0.04-in diameter at a height of 6.78 in. Compute the true static height.
Find the force of friction exerted on the puck : A puck slides on a surface for 5.6 m before it stops. If it was moving at a velocity of 15 m/s and has a mass of 1.2 kg, what is the force of friction exerted on the puck

Reviews

Write a Review

Civil Engineering Questions & Answers

  Explain transportation network

Transportation network, A power generator at a dam can send 300 megawatts to substation 1, can send 200 megawatts to substation 2, and can send 250 megawatts to substation 2

  How to specify the state of stress in the wall of the tank

The tank has an inner diameter of 1.5 m and a wall thickness of 18 mm. If the pressure in the tank is p=1.20MPa, determine the force in the 16 bolts that are used to attach the cap to the tank. Also, specify the state of stress in the wall of the ..

  Determine the minimum required diameter for the machine

Determine the minimum required diameter for this machine member based on direct, compressive stress. The member is to be made of gray cast iron. Use a factor of safety of 6.0 against compression failure.

  Determine the size pfr and cfstrs required to treat

Determine the size PFR and CFSTR's required to treat 4000 m3/day of sewage with a BOD of 200 mg/L. State law requires a minimum of 92% removal and BOD follows first order kinetics.

  Design a column base plate

Design a column base plate for a W10 x 33 column supporting a service dead load of 20 kips and a service live load of 50 kips. The column is supported by a 12-inch x 12-inch concrete pier. Use A36 steel and f 'c = 3 ksi. Answer 12 x 12 x 5/8

  Determine what is the height of the column of water

If water at 70 degrees C (row=1.94 slugs/ft^3, vapor pressue= 0.363psia) is used in a simple barometer what is the height of the column of water if the atmospheric pressure is 15 psia

  How much caco3 is produced per hour

A slurry containing 20 percent by weight of limestone (CaCO3) is processes to separate pure dry limestone from water. If feed rate is 2000kg/h, how much CaCO3 is produced per hour?

  What types of attacks can still occur

Do the administrators of server systems still have to be concerned about, and take further countermeasures against DoS attacks, if so, what types of attacks can still occur, and what measures can be taken to reduce their impact?

  What was the ph of the soft drink before bottle was opened

You open a 16 oz (1 pint) bottle of a carbonated soft drink that has a temperature of 5°C, then you get distracted and forget to drink it. You come back quite some time later and find that it has gone "flat," and that it has gotten warm (20°C).

  Solve a linear program that will suggest a hen managentment

Assume that an egg can be hatched only in the week after it is laid. Otherwise it must be saved and sold for 10 cents. Assume that there are no eggs available for hatching in the first week.

  Calculate the absolute viscosity of the oil in a large tank

A 6-inch diameter steel sphere (sg = 8.0) is released in a large tank of oil (sg = 0.86). The terminal velocity of the sphere is measured at 13.5 ft/s. Calculate the absolute viscosity of the oil.

  Find temperature to achieve the required concentration

The initial concentration of carbon in the metal is 0.1wt%. We first do an experiment by applying a concentration of 5%wt of carbon at the surface of a similar slab and maintaining the system at 900 K for an hour.

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