Assignemnt #40 and Modulus Animation
Code
///Name: Daniel Rhees
///Period: 5
///Project Name: Modulus Animation
///File Name: ModulusAnimation.java
///Date: 1/14/2016
public class ModulusAnimation
{
public static void main( String[] args ) throws Exception
{
for ( int i=0; i<80; i++ )
{
if ( i%56 == 0 )
System.out.print(" **************** ******** \r");
else if ( i%56 == 1 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 2 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 3 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 4 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 5 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 6 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 7 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 8 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 9 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 10 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 11 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 12 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 13 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 14 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 15 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 16 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 17 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 18 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 19 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 20 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 21 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 22 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 23 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 24 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 25 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 26 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 27 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 28 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 29 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 30 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 31 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 32 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 33 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 34 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 35 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 36 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 37 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 38 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 39 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 40 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 41 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 42 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 43 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 44 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 45 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 46 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 47 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 48 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 49 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 50 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 51 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 52 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 53 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 54 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 55 )
System.out.print(" ******** ******** ******** \r");
else if ( i%56 == 56 )
System.out.print(" ******** **************** \r");
Thread.sleep(200);
}
}
}