Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Self Check 2.31

+2 votes
I am having trouble finding the bugs in the code. Even with the solution given (http://www.buildingjavaprograms.com/self-check-solutions-3ed.html#ch02) I am still a little confused specifically with "Line 12".

Any hints?
asked Sep 13, 2017 in CSC 211 (F17) by Robert (RJ) Nicholas (100 points)

1 Answer

0 votes
I talked to Stonedahl about this problem and the best way to solve it is using the parameter stuff that we learned in class the other day.

About line 12 specifically, if you look at the update for count, and the code, it basically increases count by 3 every time instead of 2 which is what you need.
answered Sep 14, 2017 by Kathryn Clark (100 points)