Question: This problem modifies a lab you already did but uses methods in it. Read in starting value in account, yearly interest rate and number of

 This problem modifies a lab you already did but uses methods

in it. Read in starting value in account, yearly interest rate and

This problem modifies a lab you already did but uses methods in it. Read in starting value in account, yearly interest rate and number of months Create method called calculateMonthly that gets yearly interest rate and calculates monthly rate and assign it to a monthly interest rate variable - Create a method called Calcinterest and pass the current value in account and monthly interest rate. It should return new amount in the savings account Create loop that executes the number of months and calls the method each month returning the new value in the account - When loop is done print the amount in the account Test it for 4 months with starting value of $100 and 12% yearly rate. Should get same result as previous lab -Also test it for 3 months with 0% yearly interest rate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!