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

Does anyone know how to use the solutions to the credit card problem (Set 1)? I enter data but the program keeps closing.

OpenStudy (e.mccormick):

How are you running it? As I recall, there are two credit card problems... one was to see how fast it would pay off with a certain payment and the other was to see what payment would be needed to pay down in a certain time frame.

OpenStudy (anonymous):

Not sure I understand the question. Before I started working on set (1) - 3 sets of credit card problems - I checked to see if the solution exists. They direct you to Lesson 4 where there is a zip folder with 3 python files. When you open any of them they prompt you with 3 questions about the details of the credit card problem, and then it runs a few numbers and shuts down. I was expecting to see the actual code there.

OpenStudy (anonymous):

Don't double click on the .py file; open it using IDLE by going to File -> Open, and opening the .py solution file.

OpenStudy (e.mccormick):

I agree with min. You seem to be running rather than editing the code.

OpenStudy (anonymous):

Thanks. That worked!

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!
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!