Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
25 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
laylasnii13:
poem : Iu2019m sorry if I fade I never meant to disappoint, but I did over and over.
gelphielvr:
(creative / activity ideas) Does anyone have Any ideas for activities that my club could do for kindness week? Were basically just a club meant for spreadin
gelphielvr:
(not school related) What does a non religious person do during the pre game pray
randogirl123:
Do you think my teacher will like this Earth Science presentation about Seismic w
OppStoppax:
I haven't posted anything in a year or so, so here's something poetic i've written.
8 hours ago
1 Reply
0 Medals
11 hours ago
6 Replies
4 Medals
22 hours ago
13 Replies
1 Medal
21 hours ago
4 Replies
2 Medals
20 hours ago
7 Replies
3 Medals