Most of the PIKAs will be in the form of an Erlang module that you need to complete. For this PIKA, download a copy of pika1.erl and complete the functions for q1() and q2(DailyPrecipitation. Detailed instructions for the questions are included as comments in pika1.erl.

In addition to the templates for q1 and q2, pika1.erl exports the function test(). Please run pika1:test() before submitting your solution. The test() function tests that the return values from q1() and q2(DailyPrecipitation) are of the expected types, and prints error messages if they are not.

When you have completed and tested pika1, submit your solution using the handin program. Please submit it as:
    cs418 pika1
Pika 1 is due at 1:00pm on January 8, 2018.