Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview For this assignment you will implement a GUI for an interest table calculator. A video of a calculator that illustrates the functionality you need

Overview

For this assignment you will implement a GUI for an interest table calculator. A video of a calculator that illustrates the functionality you need to implement can be found at Video. Notice that your GUI does not need to look like the video. Actually the one in the video was developed using swing while you need to use JavaFX. About this project:

There are no public/release/secret tests associated with this project.

There is no CVS distribution (more details below).

To submit your project you need to upload a zip file directly to the submit server (No "Submit Project" option is available).

Objectives

Implement Java inner classes

Practice lambda expressions

Practice event-driven programming

Learn some basic Java GUI development

Grading

(40%) GUI

(5%) display area

(5%) principal text field

(5%) rate text field

(5%) years slider

(5%) simple interest button

(5%) compound interest button

(5%) both interest button

(5%) labels (Principal:, Rate(Percentage):, Number of Years:)

(5%) Correct computation of simple interest

(5%) Correct computation of compound interest

(5%) Correct computation of both interests

(25%) Implementation of functionality associated with GUI

(5 pts) One inner class (non-anonymous) to handle some computation (e.g., button event)

(10 pts) One inner class (anonymous) to handle some computation (e.g., button event)

(10 pts) One lambda expressionn to handle some computation (e.g., button event)

(10%) Project implemented using Model-View-Control paradigm

(10%) Style

Clarifications

Code Distribution

For this project we are not providing any code. You need to create an Eclipse project named InterestTable. In that Eclipse project feel free to add any classes/packages you understand you need. To simplify the grading process make sure you have a class named InterestTableGUI.java. This class must have a main method that allow us to run your application.

Specifications

You need to implement a GUI that displays interest tables ranging from 1 up to 25 years. The tables are generated by selecting the appropriate button and based on the principal, rate, and years values provided. One table displays simple interest, the second compound interest, and the third a combination of simple and compound interest. See the provided Video for table format information.

Interest Formulas

The formula to compute simple interest amount is:

simple interest amount = principal + (principal * (rate/100) * years)

The formula to compute compound interest amount is:

Compound Interest Amount = principal * (1 + rate/100)Years Notice that you do not need to add the principal in this case.

Displaying Currency

To display currency you can use the NumberFormat class (part of java.text) as follows:

String formattedValue = NumberFormat.getCurrencyInstance().format(value); where value represents the numeric value to format.

Requirements

You may NOT use Swing; you must use JavaFX.

Your GUI should resemble the GUI available in the video.

Make sure you have a class named InterestTableGUI.java. This class must have a main method that allow us to execute your application.

Keep the Model-View-Control model in mind when writing your code. Feel free to add any classes you understand you need. The actual computation of interests should take place in a separate class(es).

No student tests are required for this project.

Your project will be graded by running the main method associated with the InterestTableGUI.java class.

You may not use any tools that generate the GUI code for you.

Optional

If you would like to provide additional functionality to your GUI or provide a nice/cool alternative go head :); surprise us. Just make sure you develop it in a class other than InterestTableGUI.java; name it OptionalGUI.java.

image text in transcribed

Interest Table Calculator Principal: $5,000.00, Rate: 5.0 Year, Simple Interest Amount 1-->$5,250.00 2--$5,500.00 3->$5,750.00 >$6,000.00 5->$6,250.00 Principal: 5000 Rate(Percentage): 5 Number of YearS: I1 1 59 13 17 21 25 0:14 / 0:49

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

1. What is meant by Latitudes? 2. What is cartography ?

Answered: 1 week ago