1 4 9 16 25 36 49 64 81 100 1 -2 3 -4 5 -6 7 -8 9 -10 -1 1 -1 1 -1 1 -1 1 -1 1 1 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000 1 3 6 10 15 21 28 36 45 55 1 2 6 24 120 720 5040 40320 362880 3628800 1.0 0.5 0.25 0.125 0.0625 0.03125 0.015625 0.0078125 0.00390625 0.001953125 0 1 2 3 4 5 6 7 8 9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 3 3.1 3.14 3.142 3.1416 3.14159 3.141593 3.1415927 3.14159265 3.141592654
public class Homework6_1
{
public static void main(String[] args)
{
final int STEPS = 10;
for (int n = 1; n <= STEPS; n++)
{
System.out.print(n * n);
System.out.print(" ");
}
System.out.println();
int f = 1;
for (int n = 1; n <= STEPS; n++)
{
System.out.print(f * n);
System.out.print(" ");
f = f * -1;
}
System.out.println();
// your work goes here. . .
}
}


Submit a zip file hw6_xyzw with the files