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

Hello, Working on Problem Set 1. I look at the solution set and understand it from that point of view. However I'm getting a syntax error at mr1 that is causing my irk. #Outstanding balance on the credit card outstanding= float(raw_input ('Enter the outstanding balance on the credit card')) #interest rate on balance intrate = float(raw_input ('Enter you interest rate:')) #minimum monthly payment rate minimum_rate= float (raw_input ('Please enter the minimum monthly payment rate as a decimal') mr1 = float(minimum_rate) os1 = float(outstanding) minimum_monthly_payment = float (minimum_rate * outstanding) interest_monthly=intrate/12 interest_paid=interest_monthly*outstanding principal_paid=minimum_monthly_payment-interest_paid remaining_balance= outstanding-principal_paid

OpenStudy (anonymous):

please use a code pasting site http://dpaste.com http://pastebin.com http://codepad.org .....

OpenStudy (anonymous):

You indicate that the line amountPaid = float(amountPaid+minPay*balance) will cause an error but that line does not occur in the code you posted. I agree - please use a code pasting site to put up the whole code file, and please indicate by line number what line(s) are giving you troubles or confusions. If you are getting a specific error when you run the code in IDLE please post that too.

OpenStudy (anonymous):

Although the error points to the mr1 line, the error actually occurs on the previous line--you are missing a closing parenthesis on the minimum_rate line.

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
Bubblezz: Art for @euphoriiic
2 hours ago 23 Replies 3 Medals
ilovemybf: i need more drawing ideas
3 hours ago 15 Replies 1 Medal
toga: what is a Mayuri
6 hours ago 3 Replies 1 Medal
Midnight97: Here is a beat I made let me know what y'all think
7 hours ago 24 Replies 2 Medals
toga: who thinks that there should be more titles
8 hours ago 5 Replies 0 Medals
Midnight97: Can I get some help because I forgot how to do this
8 hours ago 5 Replies 2 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!