Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. # The current volume of a water reservoir (in cubic metres)
  2. reservoir_volume = 4.445 * (10 ** 8)
  3. # The amount of rainfall from a storm (in cubic metres)
  4. rainfall = 5 * ( 10**6)
  5.  
  6. # decrease the rainfall variable by 10% to account for runoff
  7. rainfall -= (rainfall * 10) / 100
  8. # add the rainfall variable to the reservoir_volume variable
  9. reservoir_volume += rainfall
  10. # increase reservoir_volume by 5% to account for stormwater that flows
  11. # into the reservoir in the days following the storm
  12. reservoir_volume += (reservoir_volume * 5) / 100
  13. # decrease reservoir_volume by 5% to account for evaporation
  14. reservoir_volume -= 1122500
  15. # subtract 2.5 * (10 ** 5) cubic metres from reservoir_volume to account
  16. for water
  17. # that's piped to arid regions.
  18. reservoir_volume -= 2.5 * (10 ** 5)
  19. # print the new value of the reservoir_volume
  20. print(reservoir_volume)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement