Question: My code needs to be fixed. First Picture shows the results after it failed in a test. The second picture is a picture of my
My code needs to be fixed. First Picture shows the results after it failed in a test. The second picture is a picture of my code. Please Write a new code that will fix this problem and make me pass the test
MUST BE CODED IN C++


test_1 (test_simple.TestSimpleArithmetic) (0.0/2.0) Your output: Initial investment? Yearly growth rate? Yearly withdraw amount? Desired balance? Year: 80 Balance at end: 1.0247e+06 Amount withdrawn over period: 4000 Expected output: Initial investment? Yearly growth rate? Yearly withdraw amount? Desired balance? Years: 80 Balance at end: 1.0247e+06 Amount withdrawn over period: 4000 Diff view ('+' is expected output, '-' is your output): - Initial investment? Yearly growth rate? Yearly withdraw amount? Desired balance? Year: 80 ? + Initial investment? Yearly growth rate? Yearly withdraw amount? Desired balance? + Years: 80 Balance at end: 1.0247e+06 Amount withdrawn over period: 4000 Test Failed: your program didn't produce the correct output. 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
