// Lab 3, problem 4, version 2 // Print a conversion table $US --> GM import java.text.*; class ConvTable2 { static final float COEF = 1.67f; public static void main (String[] args) { DecimalFormat precisionTwo = new DecimalFormat("#.00"); int US = 10; System.out.println ("US dollars\tGerman marks"); while (US <= 100) { System.out.println (US + "\t\t" + precisionTwo.format(COEF * US) ); US = US + 10; } } }