Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+43 votes
asked in CSC285_Fall2018 by (8 points)

I have been having problems with the "other test" as well. When the code compiles every expected output is produced correctly with the exception of the "other test".


I realized my mistake. I had multiple "if" statements and no "if else" statements. I added them and everything is working just fine.

4 Answers

+19 votes

In my experience with the homework, as long as the actual tests pass then the "other test" should pass as well. So I would try to focus on the rest of the tests and everything should fall into place

answered by (8 points)
+17 votes

It wasn't included in the description, but I also accounted for both being 21 as well as both busting (going over 21). Maybe that'll make a difference.

answered by (8 points)
+16 votes

If you pass all shown test you should pass the "other test" part too, at least that was what happened for me.

answered by (8 points)
+13 votes

I think this problems happen when your ideas correct in some situation, but not in all situation, which make other test fail.

answered by (8 points)