Questions (100 points).   Write answers on this page.

1.  Where do all variables that will be public to all methods
    go in the program?


2.  If a variable is defined in a method, is it available
    to other methods?   Explain.


3.  There are two ways to trace program output:
    (1) System.out.println        (2) gdrawString
    One of these ways is limited -- explain.



4.  Explain how to convert a text input to an integer?
    Give examples.



5.  This program converts text into a double precision number
    (double).  Explain the statements that do this.


6.  Create a condition that sets off the 'error trap'.   Name it.
    Explain 'error trapping' (try ... catch).



7.  This program will begin processing when either the Start Button
    is clicked or when the input fields are filled and the 
    key is pressed.  Explain this.


8.  How could you change the initial amounts for principal, etc?


9.  What does 'repaint()' do?


10. To round the interest rate, there was a lot of manipulation performed.
    Mulitplying, rounding, then dividing.  Try to modify the rounding
    code.  Can you simplify it?

    The "Math.round" statement rounds off the least significant
    digit.   Explain how 'interest rate' was rounded.


11. What is the difference in monthly payments between
    6.00% and 7.50% on a principal of $250000 on a 30 year
    loan?       Learn this now, avoid the rush later.