Đang Thực Hiện

EASY JAVA PROGRAM: ArrayLists Programming 1

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.

VII. Formula

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

nt

A = p ( 1 + r / n)

where

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

IX. Extra Credit Opportunity

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.

Kỹ năng: .NET, Lập trình C, Lập trình C#, Lập trình C++, Java

Xem thêm: arraylists certificates deposit java, variables programming, use data structure programming, table data structure, s programming, report programming, programming variables, programming style, programming structure, programming programs, programming plus, programming object, programming number, programming n, programming model, programming methods, programming method, programming conventions, programming certificates, programming data structure, own programming, one stop plus, number programming, method write report, method programming

Về Bên Thuê:
( 1 nhận xét ) key west, United States

Mã Dự Án: #1030765

Đã trao cho:

procoder898

Hi, I am expert at Java and can surely satisfy you. Please check your inbox,

$30 USD trong 0 ngày
(95 Đánh Giá)
6.2

22 freelancer đang chào giá trung bình $42 cho công việc này

thanhhungqb

Please see pmb, thanks.

$30 USD trong 1 ngày
(68 Đánh Giá)
5.1
jeal4real

Can help you with this.

$30 USD trong 1 ngày
(12 Đánh Giá)
4.4
need4speed

can do it in 1 day. Hope to hear from you. Thanks

$35 USD trong 1 ngày
(6 Đánh Giá)
3.9
eddie09

Let me do this boss. Thanks

$50 USD trong 1 ngày
(12 Đánh Giá)
3.1
alexd275

3rd year student at a Computer Science university. Ready to start!

$35 USD trong 1 ngày
(4 Đánh Giá)
2.5
Chtioui86

Hello Could you tell me if your application is Console or graphics forms . Thank you

$100 USD trong 3 ngày
(2 Đánh Giá)
2.1
KamauHiram

I can do this for you

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
gnsonar

i am currently working on java so i can does it well...........

$35 USD trong 20 ngày
(0 Đánh Giá)
0.0
AlonaSoftEng

Hi, Please see PM for more details.

$55 USD trong 2 ngày
(0 Đánh Giá)
0.0
GauravMalik8666

Work 4 years as a Software Developer. Familiar with Enterprise technologies (Documentum, different Application Servers) and many programming languages. Technical Skills: Documentum ( 2 years ) DC, WebTop, Thêm

$101 USD trong 2 ngày
(0 Đánh Giá)
0.0
doublelo7

Please see PM

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
ferbrice

I'm C/Java Programmer in Transactional Systen, I can do it.

$40 USD trong 1 ngày
(0 Đánh Giá)
0.0
mobitrain

please see PM

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
jmgm5781

I can do this work.

$40 USD trong 2 ngày
(1 Đánh Giá)
0.0
rlsadiz

I can do this w/ GUI please give this project to me.

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
alkinfotech

Hello, I have understood the project requirements. I am a Sun Certified Java Programmer (SCJP) and an expert with ASP.NET, VB.NET, SQL SERVER, AJAX, XML, PHP,Joomla, Workpress, CAKEPHP FACEBOOK + GOOGLE APPLICATIONS. Thêm

$45 USD trong 2 ngày
(0 Đánh Giá)
0.0
dikei

Let's do this

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
Marastan

Hello, I have extensive experience with this type of projects from my previous work on RentACoder - 249 completed projects, many of which are similar to this one - check out my profile here: http://news.vworker.com Thêm

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
erkunalgarg

hello sir, i am fresher in java but i will definatly do your work in days assigned by me

$40 USD trong 3 ngày
(0 Đánh Giá)
0.0
GeniousOnBoard

Please see PM. Im working in banking domain already

$40 USD trong 2 ngày
(0 Đánh Giá)
0.0