package eco;

public class Farmer {
    
    public static int fPop = 5;
    public static int fHunger;
    public static float rate = fPop;
    
    public static int fHunger(int fPop) { //Returns the total amount of wheat that is needed to feed the farmers.
        
        //fHunger = (Main.randInt(8,10));
        fHunger = 9;
        return fHunger;
        
    }
    
    public static int fPop() { //Returns the number of farmers in existence.
        
        if(Wheat.tWheat < (fHunger * fPop)){
            
            fPop = Wheat.tWheat/fHunger;
            Wheat.tWheat = Wheat.tWheat - (fHunger * fPop);
            if(Wheat.tWheat < 0)
                Wheat.tWheat = 0;
            
        }
        rate = (rate * (1 + Main.fBirthRate - Main.fDeathRate));
		fPop = (int)(rate);
	    return fPop;
        
    }

}

@@ -184,81 +184,9 @@
 p) %7B
- //Returns the total amount of wheat that is needed to feed the farmers.
 %0A
+
     
@@ -331,54 +331,8 @@
 () %7B
- //Returns the number of farmers in existence.
 %0A   
@@ -382,29 +382,16 @@
 fPop))%7B%0A
-            %0A
         
@@ -515,16 +515,18 @@
 eat %3C 0)
+ %7B
 %0A       
@@ -552,16 +552,16 @@
 at = 0;%0A
-
         
@@ -556,32 +556,33 @@
  0;%0A            
+%7D
 %0A        %7D%0A     

Update Farmer.java