124k views
1 vote
Write an arithmetic expression that calculates the yearly interest earned on a amount that's stored in a decimal variable named principalAmount at an interest rate that's stored in a decimal variable named interestRate. (The interest rate is stored as a decimal fraction like .055 for a rate of 5.5%.)

User Tdube
by
4.2k points

2 Answers

6 votes

Answer:

yearlyInterest = principalAmount * interestRate * year

Explanation:

The general formula for interest is given as:

(principal * rate * time)/100

but in this case the rate has been converted to decimal and the time is in year.

The principal is represented as principalAmount

The rate is represented as interestRate

The time is represented as year

So, the arithmetic expression is to multiply every term together without dividing by 100 since rate is expressed as a decimal fraction.

User Ro Marcus Westin
by
4.3k points
3 votes

Answer:

Principal Amount x Interest Rate

Explanation:

User Brianreavis
by
3.7k points