Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Evaporator
- {
- public:
- static int evaporator(double content, double evap_per_day, double threshold);
- int day = 0;
- double contnetNow;
- double remain;
- remain = 100;
- contentNow = content;
- while (remain > threshold){
- contentNow = contentNow - evap_per_day;
- remain = (contentNow / content)*100;
- day++;
- }
- return day;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement