Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+16 votes
asked in CSC211_Winter2018 by (1 point)

2 Answers

+13 votes

You can put a printf in method createTable to print out Scenario 1 Scenario 2.

answered by (1 point)
+12 votes

Where do you call methods for Scenario 1 and Scenario 2 is a little vague. The program directions talk about calling getDouble to have the user enter the deposit and rate in the main method. You'll do that for both scenarios which means four calls to getDouble.

Within the createTable method, you need to call computeBalance for scenario 1 and then again for scenario 2. Since you need to call computeBalance for each year, then think about a loop with calls to the computeBalance method in the body of the loop.

answered by (1 point)