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.

Categories

+37 votes
asked in CSC285_Fall2018 by (8 points)
+6

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".

+5

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

+17 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 (1.9k points)
+16 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)
+15 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 (3.1k points)
+12 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 (4.8k points)
...