Your instructor may assign one or more of the following problems. Don’t feel that you must do all the problems; for the homeworks, you are only required to do those that are explicitly assigned via Moodle.
Submit your work as you did for lab01.
BIG PICTURE: Write a graphical user interface to calculate a monthly loan payment.
Details:
loan
and should:
Let n = years * 12 Let i = annualInterest / 100 / 12 Then D = {[(1 + i)^n] - 1} / [i (1 + i)^n] and monthlyPayment = loan / D
NOTE: The above is pseudocode, not something that can be copied into your solution directly.
loan_calculator
and use pairs of labels and entries to indicate and allow the user
to enter each of:
Create a temperature class whose constructor receives a Fahrenheit temperature and implements an accessor method that computes and returns the equivalent degrees in Celsius. No temperature should be below absolute zero. Let the default temperature be 0.0 degrees Fahrenheit.
Create unit tests for the temperature class, including tests for the correctness of the temperature conversion and for the exceptions that can be raised.
Create a GUI, similar to the fraction simplification example, that allows a user to enter a Fahrenheit temperature value and convert the value to Celsius. Send all welcome and error messages to a message panel at the bottom of the interface. See the example on the right.
Submit all appropriate files for grading, including code files, screen captures, supplemental files (e.g., image files), and text files. We will grade this exercise according to the following criteria: