package eco;

public class Wheat{

    public static int tWheat;
    public static int wheatPrice;
    
    public static int tWheat(int fPop, int tAcres, int unemployedFarmers, int employedFarmers) {
        
        int farmPacks = tAcres/5;
        unemployedFarmers = fPop - farmPacks;
        
        if(unemployedFarmers < 0) {
            unemployedFarmers = 0;
        }
        
        employedFarmers = (fPop - unemployedFarmers);
        tWheat = employedFarmers * 40;
        return tWheat;
        
    }
	 
}

@@ -92,21 +92,16 @@
 tPrice;%0A
-    %0A
     publ
@@ -118,43 +118,53 @@
 int 
-tWheat(int fPop, int tAcres,
+unemployedFarmers = 0;%0A    public static
  int 
-un
 empl
@@ -178,28 +178,60 @@
 mers
-, int employedFarmer
+ = 0;%0A    %0A    public static int farmPacks(int tAcre
 s) %7B
@@ -274,16 +274,138 @@
 cres/5;%0A
+        return farmPacks;%0A        %0A    %7D%0A    %0A    public static int unemployedFarmers(int farmPacks, int fPop) %7B%0A        %0A
         
@@ -553,53 +553,324 @@
     
-employedFarmers = (fPop - unemployedFarmers);
+return unemployedFarmers;%0A        %0A    %7D%0A    %0A    public static int employedFarmers(int fPop, int unemployedFarmers) %7B%0A        %0A        employedFarmers = (fPop - unemployedFarmers);%0A        return employedFarmers;%0A        %0A    %7D%0A    %0A    public static int tWheat(int fPop, int tAcres, int employedFarmers) %7B%0A        
 %0A   

Update Wheat.java