C++ is a featured language in Jurassic July for 12in23. To ease your journey into the language, learning mode has been added to the track.
We’ll be adding more concepts and tweaking things a bit along the way. If you find anything that can be improved, please don’t hesitate to post here in the forums or on Discord.
Thank you for all the hard work!
Wish I have waited a bit if I’ve known this was coming, already 2/3 in for all the exercises, hah. Still will go over the syllabus again for the things I missed. I had a really hard time trying to get into C but C++ has been fun so far.
@vaeng I’m having a small problem in the exercise for the loop concept.
The “Interest_is_interesting” exercise with the yearly_interest function
This is my implementation:
Test 17 Interest on large balance
### Test Failure
FAILED: REQUIRE( yearly_interest(balance) == want ) with expansion: 856.3698 == 856.3698 at /tmp/interest-is-interesting/interest_is_interesting_test.cpp:106
Maybe something to do with how double check for equality?
Interestingly, i changed my function to the other way to calculate
and this time the 16th test also failed along with the previous failure:
Test 16: Interest on medium balance
FAILED:
REQUIRE( yearly_interest(balance) == want )
with expansion:
81.0498379 == 81.0498379
at /tmp/interest-is-interesting/interest_is_interesting_test.cpp:101
You caught something good, I will change the test to allow for rounding errors along the way. The way it’s written it only accepts the solutions in the way that I wrote the example. That is bad design and you are right to remark on that
I corrected the tests. Can you update your exercise and tell me if this is also fixed on your side? @glaxxie
So far, the only exercise that might need some tweaking/rewriting is the making-the-grades exercise. I’ve created some issues for it: Issues · exercism/cpp · GitHub (and also for any other issues I found)
Thanks for the extensive input! I will be on vacation next week. I hope nothing made it into the track that hinders someone’s progression.
Afterwards I will go fix things and add more exercises and concepts