Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Evaporator
  2. {
  3.  
  4. public:
  5. static int evaporator(double content, double evap_per_day, double threshold);
  6.  
  7. int day = 0;
  8. double contnetNow;
  9. double remain;
  10.  
  11. remain = 100;
  12. contentNow = content;
  13.  
  14. while (remain > threshold){
  15. contentNow = contentNow - evap_per_day;
  16. remain = (contentNow / content)*100;
  17. day++;
  18. }
  19.  
  20. return day;
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement