University of Cincinnati Logo
 

CS-3003 - Programming Languages
Electrical Engineering and Computer Science

Homework Solutions
   Virtual functions, abstract classes
Solution:            

Explanation: In working with a student on Lab 1 I discovered that some students do not yet have sufficient dexterity in object oriented programming to be of value to industry. I see this as serious because by this time all students in CS should have this skill. Therefore, I am posting an attempt by one student to build an EmployeeList class plus my comments and fixes which you can look at to get a sense of how well you understand object oriented coding and virtual functions. Please take this seriously. My comments all begin with Zowie so they are found easily. All submissions will get 10/10 for this lab provided that what you have submitted works. If you do not get 10/10 you can petition the instructor via email to set up a meeting where you explain how you would have solved Lab 1 with your new knowledge. Windows users should be able to run the code directly from the jar file. Others may have to use java -jar wages.jar or compile using javac Wages.java and run with java Wages.

   Threads and deadlock
Solution: java source.
   A Stream extension
Solution: java source.
   Reflection
Solution: java source.
   Scheme procedures, let*, tail recursion
Solution: scheme source.
   The power of lambda
Solution: scheme source.
   Call-with-current-continuation
Solution: scheme source.
   Magic squares
Solution: scheme source.
   Hamming sequence
Solution: haskell source.
   Types and functions
Solution: haskell source.
   Bloom filter
Solution: haskell source.
ERC
MainStreet
Paul Erdos
NIT
Ladies on Campus
Oscar Robinson