//Peter Le //Period 2 //Computer Systems Research //Data input handler import java.util.*; import java.io.*; public class InputTest { static int citz = 10; static int poolz = 1; static int govtz = 1; public static void main(String[] args) throws IOException { //read in data for different kinds of classes BufferedReader citizenReader = new BufferedReader(new FileReader("citizen.txt")); BufferedReader resourceReader = new BufferedReader(new FileReader("resourcepool.txt")); BufferedReader govtReader = new BufferedReader(new FileReader("govt.txt")); PrintStream cw = new PrintStream(new FileOutputStream("citizen.txt")); PrintStream rw = new PrintStream(new FileOutputStream("resourcepool.txt")); PrintStream gw = new PrintStream(new FileOutputStream("govt.txt")); cw.println(citz); //# citizens //happy, workrate, health, wealth, spending, wealth assessment double h, wr,he, w, sp, wa; h = 75.0; wr = 0.05; he = 80.0; w = 500.0; sp = 0.10; wa = 50.0; for(int x = 0;x