subject

Computer Science A PLTW Computer Science
[
1.2.9 Annuity Free Response Question
An annuity is a financial account that produces a fixed payment to the account's owner every year until the
funds in the account are gone. The present value of an annuity is calculated using the amount of the
payment, the interest earned, and the number of payments that will be made.
Specifically, the present value (PV) of an annuity at the time it is created can be determined with the following
formula
PV = pmt
Where: pnt is the payment amount
1 is the interest rate
n is the number of payments to be made
An incomplete Annuity class is provided
public class Annuity
/
• Returns the present value of the annuity
./
public double getPresentValue(int pmt, int i, int n)
to be implemented /
}
// there may be instance variables, constructors, and methods not shown
}
FRQ Using the method header below, write the method getPresentValue. You must convert the given
interest value i to an interest rate percentage.
public double getPresentValue(int pmt, int i, int n)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, tay9122
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, bbgirl8638
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
image
Computers and Technology, 24.06.2019 13:30, sweeps8758
Which type of excel chart should be used to track students’ progress on test grades? line column bar pie
Answers: 2
You know the right answer?
Computer Science A PLTW Computer Science
[
1.2.9 Annuity Free Response Question
...

Questions in other subjects:

Konu
Spanish, 21.04.2020 03:15