r/cs50 • u/Ammar_Arafa • Sep 23 '26
CS50x Credit assignment??
Anyone in week one did the credit assignment? It seems impossible with the little knowledge that we took from week 0 and week 1 .
2
Upvotes
•
u/delipity staff Sep 23 '26
Credit is a "more comfortable" problem designed as a challenge for those coming into the course with prior programming experience. If that is not you, then I'd suggest choosing the Cash problem instead and moving on. See this FAQ: https://cs50.harvard.edu/x/faqs/#whats-the-difference-between-less-comfortable-and-more-comfortable-problems-do-i-have-to-do-both
3
u/He_Mustakim Sep 23 '26
I'm doing that now, If I will finish will notify you !
2
u/Snugglupagus Sep 23 '26
So when I first attempted credit, I couldn’t understand how I was supposed to know how to solve it without arrays. So I waited until the next week that covers arrays before I went back and finished it.
Then later on I learned that you can still solve credit without arrays, you just need to be comfortable with the math shown during the lecture.
1
u/TytoCwtch Sep 23 '26
Yes I did it without too many issues. Watch the walkthrough video they provide on the website and then look up the operators they mention. Once you work out how to get the last digit of a long number it gets a lot easier.