Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

I'm on problem set 1 part 2. I seem to have the code working but when I try change it to be multiples of 0.01 cent it gives me a wrong answer. It comes back with Enter the outstanding balance on your credit card:1200 Enter the annual credit card interest rate as a decimal:.18 RESULT Monthly payment to pay off debt in one year: 110.02 Number of months needed: 12 balance: -0.04 same code worked for the problem set and should work when changed to cent. I'm confused..anybody have an idea where I could be going wrong?

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

when you don't post your code, it is hard for us to comment are you saying that in your loop to determine the minimum payment, you are incrementing the payment by 0.01 instead of 10.0 and you are getting a wrong answer? Changing the amount you increment the payment by should only affect the number of iterations the loop makes - except that the answer will be slightly different because you have finer increments. code pasting sites: - http://dpaste.com - http://pastebin.com - http://www.repl.it/ - http://pastie.org - http://codepad.org - http://ideone.com - there are many more ... paste your code there and post the link here. select Python syntax highlighting when u paste.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question