Prog40: Modulus Animation
///Name: Ilana Levy
///Period: 5
///Program Name: Modulus Animation
///File Name: ModulusAnimation.java
///Date Finished: 10/14/2015
public class ModulusAnimation
{
public static void main( String[] args ) throws Exception
{
for ( int i=0; i<80; i++ )
{
if ( i%18 == 0 )
System.out.print(" I \r");
else if ( i%18 == 1 )
System.out.print( " I am \r" );
else if ( i%18 == 2 )
System.out.print( " I am so \r" );
else if ( i%18 == 3 )
System.out.print( " I am sooooooo \r" );
else if ( i%18 == 4 )
System.out.print( " I am sooooooo tired \r" );
else if ( i%18 ==5 )
System.out.print( " I am sooooooo tired at \r" );
else if ( i%18 == 6 )
System.out.print( " I am sooooooo tired at this \r" );
else if ( i%18 == 7 )
System.out.print( " I am sooooooo tired at this moment \r" );
else if ( i%18 == 8 )
System.out.print( " I am sooooooo tired at this moment, Sorry \r" );
else if ( i%18 == 9 )
System.out.print("");
else if ( i%18 == 10 )
System.out.print( " I am sooooooo tired at this moment \r" );
else if ( i%18 == 11 )
System.out.print( " I am sooooooo tired at this \r" );
else if ( i%18 == 12 )
System.out.print( " I am sooooooo tired at \r" );
else if ( i%18 == 13 )
System.out.print( " I am sooooooo tired \r" );
else if ( i%18 == 14 )
System.out.print( " I am sooooooo \r" );
else if ( i%18 == 15 )
System.out.print( " I am so \r" );
else if ( i%18 == 16 )
System.out.print( " I am \r" );
else if ( i%18 == 17 )
System.out.print(" I \r");
Thread.sleep(500);
}
}
}