package eco;

public class Farmer {

	public static int fPop = 5;
	public static int fHunger;

	public static float floatFPop = fPop;

	public static int wheatPerFarmer = 15;

	public static int totalHarvest;

	public static int fHunger(int popGroupNumber){

		int fHunger = 0;
		fHunger = popGroupNumber*(Util.randInt(9, 10));
		return fHunger;

	}

	public static int fPop() {

		float rate = (1 + Main.fBirthRate - Main.fDeathRate);
		floatFPop = (floatFPop * rate);
		fPop = (int)(floatFPop);
		
		return fPop;

	}

	public static void harvest(){
		totalHarvest = wheatPerFarmer * fPop;
	}

	public static int checkStarvation(int hungriness, int wheat ){
		int deadpeople;
		int q;
		int e;
		double k;
		double o;
		if(hungriness > wheat){
			o = wheat/11;
			k = hungriness/11;
			e = (int) Math.floor(k);// floors hungirness
			q = (int) Math.floor(o);// floors total wheat
			deadpeople = e-q;
			return deadpeople;
		}
		return 0;
	}

}

@@ -202,17 +202,62 @@
 arvest;%0A
-%0A
+%09%0A%09public static int normalHunger = 30;%0A%0A /**/
 %09public 
@@ -298,16 +298,21 @@
 ber)%7B%0A%0A%09
+ /**/
 %09int fHu
@@ -322,16 +322,21 @@
 r = 0;%0A%09
+ /**/
 %09fHunger
@@ -377,16 +377,21 @@
  10));%0A%09
+ /**/
 %09return 
@@ -397,24 +397,156 @@
  fHunger;%0A%0A%09
+ /**/%7D%0A%09 %0A        public static int fHunger()%7B%0A%0A%09%09int fHunger = 0;%0A%09   %09fHunger = 30 + (Util.randInt(5, 10));%0A%09 %09return fHunger;%0A%0A%09 
 %7D%0A%0A%09public s

Update Farmer.java