A community for students.
Here's the question you clicked on:
 0 viewing
osanseviero
 2 years ago
Python problem: Infinite loop
osanseviero
 2 years ago
Python problem: Infinite loop

This Question is Closed

osanseviero
 2 years ago
Best ResponseYou've already chosen the best response.0annualInterestRate=float(raw_input("enter a number: ")) balance=float(raw_input("enter a number: ")) monintrate=annualInterestRate/12.0 lowermonthpay=balance/12 uppermonthpay=(balance * (1+monintrate)**12)/12.0 monthlypayment=1 epsilon=0.2 minpay=(lowermonthpay+uppermonthpay)/2.0 while minpay >= epsilon: if balance < 0: uppermonthpay=minpay else: lowermonthpay=minpay minpay= (lowermonthpay+uppermonthpay)/2.0 print "Lowest Payment: " + str(minpay)
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.