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

Only on problem set 1: Can someone tell me if I'm on the right track/ why I feel like I'm not? This is what I have so far and I'm really unsure of what I'm doing. #Minimum monthly payment = Minimum monthly payment rate x Balance #Interest Paid = Annual interest rate / 12 months x Balance #Principal paid = Minimum monthly payment – Interest paid #Remaining balance = Balance – Principal paid a = raw_input ('Enter the outstanding balance on your credit card:') a_float = float(a) b = raw_input ter the annual credit card interest rate as a decimal:') b_float = float(b) c = raw_input ('Enter the minimum monthly payment rate as a decimal:') c_float = float(c) d = str('Minimum monthly payment:') e = str('Principal paid:') e_int = int(e) f = str('Interest paid:') f_int = int(f) g = str('Remaining balance:') g_int = int(g) for m in range(1-13): d = c*a e = d - f g = a - e

OpenStudy (anonymous):

you should use variable names that help to make the code easier to follow. "balance" instead of "a".

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
Austinsbabygirl4life: Texas schools look funn
4 minutes ago 3 Replies 0 Medals
chuu: Is it (Hunt 30-31) or (Hunt 30-1) in MLA?
6 hours ago 0 Replies 0 Medals
luvnickk: what typa music yall listen to ?
6 hours ago 15 Replies 2 Medals
GothgirlLillian: Is music considered art?
6 hours ago 2 Replies 0 Medals
luvnickk: am newwww
10 hours ago 0 Replies 0 Medals
russianmafiya: can someone help me write a love song
11 hours ago 1 Reply 0 Medals
arrivhn: ADD ME ON DISCORD ICYAFFL
11 hours ago 4 Replies 1 Medal
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!