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
Declare Interest As Float Declare Principal As Float De... View full answer
Get step-by-step solutions from verified subject matter experts
