Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (anonymous):

Can someone help me with the first problem on the nuggets code? Having trouble on where to start with problem 1?

OpenStudy (anonymous):

Well, the problem is how to calculate nuggets, from different combinations of the indicated Pack Sizes. I would start by writing down the equation, then write in steps what you would have to do to solve that equation. ex. 1. I need to get total N(nuggets), using equation: 6a + 9b + 20c. 2. I must calculate for N =50, to 55 nuggets inclusive. 3. If I get a solution for N = 50 - 55, I must explain why N = 56 to 65 is also possible. 4. How do I substitute int for those variables (a,b,c)? 5. What Range of values would I need, if any? This is just a basic way that I solved the problem, but there are many other ways to do it.

OpenStudy (anonymous):

Thank you so much I just had no idea how to start it and now I actually have a clue.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Peer0Pressures0bad: is it bad if i'm catching feelings for someone..?
6 hours ago 3 Replies 1 Medal
Peer0Pressures0bad: new favorite lyrics "Pisces and a Gemini But I think we might go really nice toge
12 hours ago 0 Replies 0 Medals
EdwinJsHispanic: confess or hide my feelings
14 hours ago 4 Replies 1 Medal
EdwinJsHispanic: how to lose feelings for someone
14 hours ago 0 Replies 0 Medals
Mrpuss: are these grades ok.
11 hours ago 6 Replies 1 Medal
EdwinJsHispanic: I'm liking the wrong person more and more what do I do
1 day ago 21 Replies 3 Medals
Skyler14: wishing everyone a happy early thanksgiving
9 hours ago 2 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!