Objectives
- To practice creation of forms
Overview
For this project you will write an application that computes simple and
compound interest. A video illustrating the functionality of
your application can be found at Application Video.
Remember that we will provide different values through the form and not just
the ones provided below.
Grading
- (50 pts) Form
- (50 pts) Form Processing
Requirements
-
Your application calculates simple interest and compound interest for a particular amount
(principal), at a particular rate for a period of years. The program will display a table with
the total amount (including principal) per year. The formula to compute simple interest is
interest = principal * (rate/100) * years. Just add the principal to the interest to
generate the amount to display. The formula to compute compound interest
is FinalAmount = principal * (1 + rate/100)Years. Notice that you do not
need to add the principal in this case.
Your program must read the principal amount, rate (%), and the maximum number
of years. Notice that at the top of the table you will see the message "Table for "
followed by the principal amount and the rate. You can use the Math.pow function
to compute the powerof a number.
-
The formatting associated with the form and the confirmation should resemble the sample
output format (but it does not need to be exact).
-
You do not need to provide comments.
-
Use meaningful variable names and good indentation.
- You may not use any authoring tool (e.g., dreamweaver, etc.)
which generates the HTML/CSS code for you.
- Make sure you view your code using Chrome (that is the environment
we will use to grade your project).