Question: Write code in the cell below that gathers from a user three pieces of information and stores them in variables. * First, you need to
Write code in the cell below that gathers from a user three pieces of information and stores them in variables.
First, you need to know how much money they are planning to invest in dollars
Second, you need to know what percent annual interest as a decimal that the investment account offers.
Third, you need to know how many times the account compounds interest per year this is typically a whole number like etc.
Don't forget to convert each of your inputs to numbers using either floatif the input number may be a decimal or int
Then you should use the formula for compound interest to compute and print how much money the user will have in their account after ten years.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
