Find Jobs
Hire Freelancers

another simple java program

$30-250 USD

进行中
已发布大约 13 年前

$30-250 USD

货到付款
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) 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 VII. 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.
项目 ID: 1028910

关于此项目

9提案
远程项目
活跃13 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Please see pmb, thanks.
$30 USD 在0天之内
5.0 (43条评论)
4.7
4.7
9威客以平均价$93 USD来参与此工作竞价
用户头像
Hi, kindly check your inbox for my inquiries. Thanks.
$50 USD 在5天之内
5.0 (158条评论)
6.0
6.0
用户头像
Please check your inbox.
$100 USD 在5天之内
4.9 (34条评论)
5.2
5.2
用户头像
Hello, I will be delighted to work on this project. Let's start.
$45 USD 在2天之内
4.9 (16条评论)
4.4
4.4
用户头像
Hello Sir, i can do it.
$60 USD 在2天之内
5.0 (3条评论)
3.3
3.3
用户头像
please check pm
$50 USD 在2天之内
5.0 (1条评论)
1.1
1.1
用户头像
Please reply
$220 USD 在9天之内
0.0 (0条评论)
0.0
0.0
用户头像
Can write java program in 36 hours or less
$250 USD 在10天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi i can complete ur project. lets start work
$30 USD 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Immokalee, United States
4.9
9
付款方式已验证
会员自4月 4, 2011起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。