Question: Write a program to compute and display an investments total interest and final value when the user inputs the original amount invested, rate of interest

Write a program to compute and display an investment’s total interest and final value when the user inputs the original amount invested, rate of interest (as a decimal), and number of years invested. You will need the following variables:

Interest (a Float) 

Principal (a Float) 

Rate (a Float)
FinalValue (a Float) 

Time (an Integer)

You will need the following formulas:

Interest = Principal * Rate * Time

FinalValue = Principal + Interest

Step by Step Solution

3.24 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Declare Interest As Float Declare Principal As Float De... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Prelude to Programming Questions!