another simple java program

I. The Problem

A banking institution offers certificates of deposit (CD's) with a variety of interest rates, and maturities of 1, 3, 5, and 10 years. Interest is always compounded, daily, monthly, or quarterly.

Write a Java program that will compute the accumulated value (principal plus interest earned), at yearly intervals, of any number of such CD's. Assume that a year always consists of exactly 365 days.

Output will be a series of 10 annual reports:

1. Reports will be in table form with appropriate column headings. There will be one row of the table for each active CD, which will include all the data along with the accumulated value and total interest earned to date.

2. Each report will also print the total accumulated value of all active CDs, and total interest earned by all active CD’s to date.

3. Once a CD reaches maturity, it will stop earning interest and will not appear in any future reports. E.g., a CD with a maturity of 5 years will appear in the reports for years one through five, but not thereafter.

II. The CD Class

Begin by creating a class to model a CD. Each CD object "knows" its own principal, interest rate, maturity, and compounding mode (private instance variables). The class has “get” methods to return this data and a method to compute and return the accumulated value.

III. The CDList Class

Now create a class to maintain a list of CDs. You will need methods to add a CD to the list and to print an annual report.

IV. The Driver (i.e., "Test") Class

Your test class or "driver" class will read data for any number of CDs from a file that I will supply. Each line (i.e., “record”) of the file will contain the data – principal, interest rate (as an annual per cent), maturity, and compounding mode – for one CD.

Create a CD object from the data in each record of the file and add it to the list. Then print the reports.

V. Additional Specifications

1. Your CDList class must use an ArrayList as the principal (no pun intended) data structure.

2. Your test class is to read the data file one time only. No credit will be given for programs that read the data file more than once.

3. Make sure your program is well documented and adheres to the style conventions discussed in class.

VI. Formula

The accumulated value (i.e., principal plus interest), A, is given by the formula:

A = p (1 + (r/n))^(n*t)


p = principal

n = number of times compounded per year

r = annual interest rate, expressed as a decimal

t = elapsed time in years (not the maturity!)

Hint: The method that computes and returns the accumulated value requires one parameter – the elapsed time in years


In each annual report, also compute and print the interest earned for that year for each CD, and the total interest earned for that year for all active CD’s.

Compétences : Java

en voir plus : method compute return accumulated value java, create interest rates java program, instance variables principal interest rate maturity compounding mode, interest earned java program, the five r, table data structure, simple data structure, p.e.t. model, one-stop plus, one stop plus, method to write a report, list in data structure, list data structure, java table data structure, java arraylist 1.5, java 1.5 for each, in line program, five r, data structure through c, data structure problem, data structure list, data structure in java, c# programs with output, c data structure programs, compute accumulated value java

Concernant l'employeur :
( 9 commentaires ) Immokalee, United States

Nº du projet : #1028910

Décerné à:


Please see pmb, thanks.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(43 Commentaires)

9 freelance font une offre moyenne de $93 pour ce travail


Hi, kindly check your inbox for my inquiries. Thanks.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(158 Commentaires)

Please check your inbox.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(34 Commentaires)

Hello, I will be delighted to work on this project. Let's start.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(16 Commentaires)

Hello Sir, i can do it.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(3 Commentaires)

please check pm

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(1 Évaluation)

Please reply

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 9 jours
(0 Commentaires)

Can write java program in 36 hours or less

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(0 Commentaires)

Hi i can complete ur project. lets start work

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)