/** Suggested answer number 1 to Q8 on H09, S13 @author P. Conrad */ public class Q8 { public static void main (String [] args) { int i; for (i=0; i<=10; i++ ) { double value = Math.sin(i/10.0) * (2 * Math.PI); System.out.println("i=" + String.format("%3d",i) + " value=" + String.format("%6.3f",value)); } } }