






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A homework assignment for a university course named comp 140, which was given in the fall semester of 2008. The assignment includes several problem variations based on the webster problem, where daniel webster has to decide whether to continue working for the devil based on certain conditions. Students are required to write recipes using mathematics, translate them into python programs, and run the programs to find the answers. Additionally, students are asked to read an essay on computational thinking by j. Wing and contrast their views on computer science before and after the assignment and the lecture.
Typology: Assignments
1 / 12
This page cannot be seen from the preview
Don't miss anything!







(^) Suppose Webster wants out of the deal before his salary on a day is less than zero. (^) Calculate the starting salary that Webster should negotiate so he can work for the devil according to the devil’s terms in the original problem (the full 30 days). (^) Identify the abstraction choices, then write the recipe in mathematics, and finally in Python. (^) Run your Python program and report the answer. (^) Replace “salary on specific day” by “net take up that day” in the decision rule above, and see if your answer is different.
Salary on the 30 th day