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

Self Check 2.31

0 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 5 days ago in CSC 211 (F17) by Robert Nicholas (245 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 5 days ago by Kathryn Clark (1,079 points)
...