Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
57 Online
I am on problem set 1 question c. My monthly payment and number of months is correct but my final balance differs from the example output for both test cases by .01. Is there best practice for rounding and adding/subtracting to adjust for floating point? I am using notepad++ and Win powershell instead of IDLE. Can this affect results?
Still Need Help?
Join the QuestionCove community and study together with friends!
the 2011 6.00sc course? pset1 problem 3? What are you using for a tolerance in your comparisons?
I was using the following: margin =.0001
Correct. It is the 2011 6.00 SC course, problem set 1c. Additional info: The balance that prints from my code is -.11 for both test examples.
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Ferrari:
Question about Health. Also, an update from Ferrari Hi everyone, it's Jordan. I have been really sick recently.
gelphielvr:
(grammar question?) Okay so basically when writing why is it "she lay there" and not "she layed there" I'm not a native speaker but "she layed there" just s
Twaylor:
idea: 0x0 = 0 now you have ( 1 ) group of 0 equal to 1 does this work as "anythin
gelphielvr:
(algebra 1) distributive property Rewrite the expression (3 x u2013 4 y )(u22122 x + 5 y u2212 6) a.
gelphielvr:
(algebra 1) how can I determine the growth rate in a y= ab^x
korbie:
If x u2260 0 and y u2260 0, then 2ud835udc65 y u00f7 6ud835udc66 x someone teach me how to solve it.
15 hours ago
23 Replies
1 Medal
21 hours ago
3 Replies
1 Medal
23 hours ago
19 Replies
1 Medal
23 hours ago
1 Reply
1 Medal
1 day ago
4 Replies
2 Medals
1 day ago
9 Replies
2 Medals