import textio.TextIO; public class CountChange { public static void main(String[] args) { int quarters; int dimes; int nickels; int pennies; double dollars; System.out.print("Enter the number of quarters: "); quarters = TextIO.getlnInt(); System.out.print("Enter the number of dimes: "); dimes = TextIO.getlnInt(); System.out.print("Enter the number of nickels: "); nickels = TextIO.getlnInt(); System.out.print("Enter the number of pennies: "); pennies = TextIO.getlnInt(); dollars = (0.25 * quarters) + (0.10 * dimes) + (0.05 * nickels) + (0.01 * pennies); System.out.println(); System.out.print("The total in dollars is $"); System.out.printf("%1.2f", dollars); System.out.println(); } }