anonymous
  • anonymous
i am having some problem in understanding pset2 can anyone tell me what we have to do in pset 2 problem 1
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
This program will tell you whether or not you can buy a certain number of nuggets given certain package sizes: def nuggets(n,x,y,z): for a in range(0,(n/x)+1): for b in range(0,(n/y)+1): for c in range(0,(n/z)+1): if x*a+y*b+z*c==n: return True You can use this program to show that you can buy 50,51,52,53,54,55 nuggets given packages of 6,9, and 20. Given that you can buy these amounts, you can show that you can buy 56,57,58...by induction or whatever the mathematical term is. Since you can buy 50, you can buy 56 since you can buy a package of 6. Since you can buy 51, you can buy 57 since you can buy a package of 6 and so on... Let me know if you need solutions to the third part of the problem.

Looking for something else?

Not the answer you are looking for? Search for more explanations.