/* Rob Arseneault * Harrison Trimble * Mrs. Purves * J1 */ import java.io.*; class Part2 { public static void main (String[] args) throws IOException { InputStreamReader inStream = new InputStreamReader (System.in); BufferedReader stdin = new BufferedReader (inStream); String inData; // Declares variable for input int number; // Declares variable for int int Twonies, Loonies, Quarters, Dimes, Nickles, Pennies; System.out.println ("Enter "); // Command which tells user to input a number inData = stdin.readLine ( ); // Reads input number = Integer.parseInt (inData); //Converts char into an int Twonies = number / 200; Loonies = (number % 100) / 25; // Does calculations to find second number Quarters = (number % 25) / 10; // Does calculations to find third number Dimes = ((number - (number % 100)) / 5; //Does calculations to find fourth number Nickles = (thousand + hundred + tens + ones); Pennies = System.out.println ( "The sum of the numbers is: " + total); //Outputs final calculation to find meters } }