Question: Objective This program provides an opportunity to building a Java class to help manage student loans. Overview & Instructions Build a class and driver application

Objective This program provides an opportunity to building a Java class to help manage student loans. Overview & Instructions Build a class and driver application to provide information on a retirement annuity. An annuity is a retirement account that an employee pays into monthly for many years during their career. Upon retirement, the retiree can draw monthly payments from the accrued value as continue income. Create a class to manage the data and calculations for your annuity. Your class should minimally include: Annuity investmentAmount investmentYears - interestRate paymentYears + calcInvestTotal() : double + calcPayoutAmount(): double In addition, be sure to include the get/set methods for each variable as well as a toString() method. The purpose of the toString() method is simply to return a"snapshot" of all data currently stored in the object and return it as a String object. The basic operation of your program is to allow the user to: Input: Number of years they wish to invest in the annuity Monthly amount they are able to invest while working Annual interest rate Number of years they wish to receive funds from the annuity after retirement. Calculate: The amount they must set aside (monthly) during work to achieve the investment target during the years of their career. The monthly amount they will receive until the funds of the annuity run out. Your application should be driven by a basic "front-end" JavaFX user interface. It should include text fields for the input variables and labels for all output values. It should also include at least two buttons to (1) perform the calculations and (2) to clear all data from the text fields. When the user clicks a button to perform the calculations, display the following summary via label objects: Years, monthly investment amount, and annual interest rate (inputs) Calculated total annuity value accrued while working Years designated for receipt of funds after retirement (input) Calculated monthly amount to receive from annuity after retirement The following formulas are necessary for the calculations are below. Calculate the total value (V ) of the annuity after n months at interest rate r. Calculate the after-retirement payment (P) given the total annuity value (V ) of the annuity after n months at interest rate r. The monthly interest rate r can be calculated given the annual interest rate as: Notes: Be careful with the user of percentages versus decimals as well as when to consider "annual" versus "monthly" calculations. Refer to online calculators as needed to verify your calculations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!