1. The total willingness to pay for cleaning up the lake is 250 x $25 + 250 x $35 = $15,000. This
exceeds the cost of $10,000 of cleaning up the lake. Therefore, it is economically efficient for
the l
1. If the government training program is implemented, the total variable cost of
production at every level of output will fall by 10%. This implies a fall in the
marginal and average variable cost of
1. 2.2 (9 points). The following function is supposed to return True if the two dictionary
parameters are equal (same keys all mapped to the same values), but it contains a bug.
2.
3. def equal(d1, d2
C [1*3,'1'*3,cfw_1:3,[1]*3][3][1]
D cfw_1:['x','y'],7:'hey',9:1[1][1]+'ou'
E cfw_'hey':'won','I':'got','do':'it'[cfw_'I':'hey','you':'do'
['I']
Read these instructions first!
Include your name, Andre
. Convert 1234 from decimal to binary.
B. Convert 01101101 from binary to decimal.
C. Braille is a system of representing symbols that is readable by blind and visionimpaired people. The basic Braille
Algorithm: Binary Search [25 pts total; 12.5 pts each]
A. Say you had to find the square root of 73, only you did not have a calculator
handy. Here is one way you could do it using just simple arithme
Algorithm: Sorting (25 pts)
The following questions pertain to snapshots of xSortLab.
A. Selectionsort Trace (12.5 pts; 2.5 pts per question)
In this example, selectionsort just compared element 3 wit
Analysis (25 pts)
A. Function Families (15 pts; 3 pts each)
Answer each of the following problems with one of O(logN), O(N), O(NlogN), or
O(N2).
1.
Say that there are N people in a room and everyone s
Base-K [2 pts]
Do some web searching and read about converting between bases. Then
1.
[0.5pt] Convert 1234 from decimal to base 7.
2.
[0.5pt] How many digits are required to represent a number N in ba