CSC 160 Extra Credit Problems for Midterm
Assigned Nov 1, Due WEDS Nov 9



For students who received less than 80% on the midterm exam, up to 3 points may be added to your midterm score (up to a maximum of 80%) for each program listed here that is successfully done. That means for each problem, include its purpose, contract, three examples, a skeleton, the actual program, and the test file.


1. Develop a function to return the average of 3 exam scores.

2. Develop a function that will find the perimeter of a square given the length of one of its sides.

3. Develop the function My-Grade-Is-B, which returns true for any grade between 80 and 89, and false otherwise.

4. Develop a function to calculate total tax liability for ANY given income. Assume that the share of income $35,000 and below is taxed at 15%, the share of income between $35,000 and $100,000 is taxed at 25%, and the share of income over $100,000 is taxed at 35%.

5. Develop the function self-description which takes your name and returns the description: My name is YOUR-NAME and I am a CSC 160 student.