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.


+46 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

+20 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)
+18 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)
+17 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)
+14 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)