Program: Which way is up?

The Finch is feeling dizzy today.

** remove code, add pseudocode and description **


import edu.cmu.ri.createlab.terk.robot.finch.Finch;

/**
* Created by: _____________
* Date: _____________
* Program to tell what way the robot is oriented until it finally is looking up at the ceiling
*/

public class WhichWayUp
{
public static void main(final String[] args)
{
// Instantiating the Finch object
Finch jay = new Finch();
while(!jay.isFinchLevel())

if(jay.isFinchUpsideDown())
jay.saySomething(" upside down");
if(jay.isLeftWingDown())
jay.saySomething(" left wing down");
if(jay.isRightWingDown())
jay.saySomething(" right wing down");
if(jay.isTapped())
jay.saySomething(" tapped");
if(jay.isShaken())
jay.saySomething(" shaken");
jay.sleep(1000);

}

jay.saySomething("Now I am level.");

jay.saySomething(" level");
jay.saySomethingln("finished");
// Always end your program so the finch will be reset for the next program
jay.quit();
System.exit(0);
}
}