package eco;

public class Farmer {
    
    public static int fPop = 5;
    public static int fHunger;
    
    
    public static int fHunger(int p){
        int x = 0;
        x = p*11;
        return x;
    }
    
    public static int fPop(float y) { //Returns the number of farmers in
        int k= 0;
        float x= 0;
        x = y;
        
        x = ((x) * (1 + Main.wBirthRate - Main.wDeathRate));
       // System.out.println("Farmer pops " + x);
        
        k = (int)(Math.ceil(x));
        
        return k;
        
    }
    
}

@@ -182,16 +182,25 @@
 = p*11;%0A
+        %0A
         
@@ -546,19 +546,476 @@
      %0A    %7D%0A
+    public static int checkStarvation(int hungriness, int wheat )%7B%0A        int deadpeople;%0A        int q;%0A        int e;%0A        double k;%0A        double o;%0A        if(hungriness %3E wheat)%7B%0A            o = wheat/11;%0A            k = hungriness/11;%0A            e = (int) Math.floor(k);// floors hungirness%0A            q = (int) Math.floor(o);// floors total wheat%0A            deadpeople = e-q;%0A            return deadpeople;%0A        %7D%0A        return 0;%0A    %7D %0A
     %0A%7D%0A

Update Farmer.java