The formula for computing the future value of an amount that is increasing due to accumulating simple interest is F = P(1+rxi) Where F is the future value, P is the present value, is the annual interest rate (decimal value not percent), and is the total time period in years. Write a function named simpleinterest that accepts values for the three variables P, and and assings them to the output variable futureValue

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 6E
icon
Related questions
Question
Problem 2: Simple Interest
The formula for computing the future value of an amount that is increasing due to accumulating simple interest is
F=P(1+rxi)
Where F is the future value, P is the present value, is the annual interest rate (decimal value not percent), and is the total time period in
years.
Write a function named simpleInterest that accepts values for the three variables P, and and assings them to the output variable
futureValue
Function
Code to call your function >
Save C Reset
function [futureValue] =simpleInterest (presentValue, interest RatePercent, time Years)
%Enter commands to perform the computation and assign the results
3 %to the output variable defined in the function command in line 1.
1 [futureValue] =simpleInterest (10000,5.25,5)
My Solutions >
MATLAB Documentation
C Reset
Run Function
Transcribed Image Text:Problem 2: Simple Interest The formula for computing the future value of an amount that is increasing due to accumulating simple interest is F=P(1+rxi) Where F is the future value, P is the present value, is the annual interest rate (decimal value not percent), and is the total time period in years. Write a function named simpleInterest that accepts values for the three variables P, and and assings them to the output variable futureValue Function Code to call your function > Save C Reset function [futureValue] =simpleInterest (presentValue, interest RatePercent, time Years) %Enter commands to perform the computation and assign the results 3 %to the output variable defined in the function command in line 1. 1 [futureValue] =simpleInterest (10000,5.25,5) My Solutions > MATLAB Documentation C Reset Run Function
Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning