ModulusAnimation

Code

public class ModulusAnimation
{
	public static void main( String[] args ) throws Exception
	{
		for ( int i=0; i<80; i++ )
		{
			if ( i%16 == 0 )
				System.out.print(" W                \r");
			else if ( i%16 == 1 )
				System.out.print("  a              \r");
			else if ( i%16 == 2 )
				System.out.print("   n            \r");
			else if ( i%16 == 3 )
				System.out.print("    n           \r");
			else if ( i%16 == 4 )
				System.out.print("     a        \r");
			else if ( i%16 == 5 )
				System.out.print("       C       \r");
			else if ( i%16 == 6 )
				System.out.print("        o     \r");
			else if ( i%16 == 7 )
				System.out.print("         o   \r");
			else if ( i%16 == 8 )
				System.out.print("          k \r");
            else if ( i%16 == 9 )
				System.out.print(" Wanna Cook \r");

			Thread.sleep(200);
		}
		
	}
}

ModulusAnimation

Assignment 40