Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
23 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
donnijah:
No Cons, All Pros for Reality Shows Dontavious Tindell I. Getting the Phone Call: When I finally got the phone call from the producers of the reality TV sho
LILBOY:
DO you guys think u can give me some lyrics for my new love song
imbored0wannatalk:
i made sum collages what should i make some of next
uknownprttyfacekayla:
Hi ud83dudc4b this is something i was working on for ab a week baha
gelphielvr:
(not a homework question) my teacher is making us talk about our best friend and why we like them.
abcdefu3:
Accounting Prepare the journal entries to record the following transactions: Sales: (a) On March 2, Benson Company sold $800,000 of merchandise to Edgebrook
PureSoulless:
Add all the numbers formed by squaring each of the three successive natural numbers and find the remainder when it is divided by 3.
2 days ago
0 Replies
0 Medals
2 days ago
27 Replies
2 Medals
1 day ago
29 Replies
4 Medals
2 days ago
21 Replies
4 Medals
3 days ago
7 Replies
0 Medals
4 days ago
0 Replies
0 Medals
5 days ago
4 Replies
1 Medal