A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 3 years ago
So now I have removed extraneous code and stripped it back to bare essentials but there is still something not quite right
monthlyInterestRate = annualInterestRate/12
mmp = 10
while(balance > 0):
m = 1
mmp += 10
while(m <=12):
m += 1
balance = (balance  mmp)*(1 + monthlyInterestRate)
if(balance <= 0 and mmp > 0):
print 'Lowest payment: ', mmp
as this prints out 300
anonymous
 3 years ago
So now I have removed extraneous code and stripped it back to bare essentials but there is still something not quite right monthlyInterestRate = annualInterestRate/12 mmp = 10 while(balance > 0): m = 1 mmp += 10 while(m <=12): m += 1 balance = (balance  mmp)*(1 + monthlyInterestRate) if(balance <= 0 and mmp > 0): print 'Lowest payment: ', mmp as this prints out 300

This Question is Closed

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0How can mmp be equal or less than zero... it is initiated at 10. You are not resetting the balance on the within outer loop

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Finally got it passed grader, it was, among st other things the balance defined in x to be inserted at the reset point

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Good stuff... congrats!

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I have rather a lot of work to do to get any good at this though.

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0If loadsOfWorkIsPutInThis: print ("You will appreciate the enormous gains later!!! Keep up the good work!!!")

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I cant get a proper way to work out the stuff on paper, doing it on screen and forgetting half of it

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Just be patient and work through every problem slowly to fully understand it. Coding is relatively easy... to get to the solution of a problem is the tricky bit!

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I'd agree with that, Thanks anyway.

TuringTest
 3 years ago
Best ResponseYou've already chosen the best response.0I too am not good at doing work on paper wither. At least the work I do is pretty disorganized. I make notes on what variables I need to change, and sketch outlines of the program, but all the important tweaking comes from me playing with the program. I guess that's just the debugging process.

MicroBot
 3 years ago
Best ResponseYou've already chosen the best response.0congratz mini!!!! see how a break helps u concentrate?:)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.