/**
 * Create and manipulate some variables.
 *
 * @author Mark Young (A00000000)
 */
public class Variables {

    /**
     * Run this program.
     *
     * @param args command lines arguments (ignored)
     */
    public static void main(String[] args) {
        // create variables with values
        int n = 10;
        double x = 4.50833;
        String s = "Hello";
        char capitalA = 'A';
        boolean isSo = true;

        // report some values
        System.out.println("\n\tint n = 10;\n"
                         + "\tdouble x = 4.50833;\n"
                         + "\tString s = \"Hello\";");
        System.out.println("n is " + n + ", x is " + x + ", and s is " + s);

        // change some values
        n = 20;
        x = 34.001;
        s = "Bye!";

        // report some values
        System.out.println("\n\tn = 20;\n"
                         + "\tx = 34.001;\n"
                         + "\ts = \"Bye!\";");
        System.out.println("n is " + n + ", x is " + x + ", and s is " + s);

        // modify some values
        n += 5;
        x -= 0.001;
        s += " Bye!";

        // report some values
        System.out.println("\n\tn += 5;\n"
                         + "\tx -= 0.001;\n"
                         + "\ts += \" Bye!\";");
        System.out.println("n is " + n + ", x is " + x + ", and s is " + s);
    }

}
