Jason's Chapter 3 Exercises

by Jason Wang

21 Jan 2016

Exercise #1:

Not too bad. I initially misinterpreteted the overtime difference to mean that the wage for the entire time has a 1.5 multiplier, but I realized that it only applied to the actual overtime period. Also, I recognize that my usage of the hournew variable was a little patchy. I feel like definitely there’s a better solution, but I can’t think of it at the moment.

Exercise #2:

The try/except framework was relatively easy to implement, but I still initially put the entire if/else conditionals outside of the block. Should’ve gone inside.

Exercise #3:

Fairly straightforward from the exercise 2, but I would like to explain that I used the absolute value to also account for negative scores. Also, the elseif conditional is a beautiful thing to use indeed.

wagerpascal claims that he goes to UNC, but the time he spends at NC State suggests otherwise. Find Jason Wang on Twitter, Github, and on the web.