How to Submit

Published on February 2021 | Categories: Documents | Downloads: 3 | Comments: 0 | Views: 120
of 1
Download PDF   Embed   Report

Comments

Content

 

8/12/2014

   

www.cmi. cmi.a ac.in c.in//~m ~ma adhavan/cou cours rse es/p s/progra rogram mmin ing0 g08 8/how-to -to-su -submit it..txt

Introduction to Programming How to submit assignments

Guidelines for coding            

1. Do not change the name of any function that you are asked to define. If the question asks you to define a function called mostlyTrue, then make sure that the function you write has the same name. Remember that Haskell is case sensitive. Functions that are wrongly named will not fetch any marks.

   

2. You must provide a type for every function you write, even though Haskell does not require this.

     

3. If you need any auxiliary functions that are not explicitly mentioned in the question, you are free to use any name that you want for these functions.

     

4. Test your code, not only with correct inputs, but also with erroneous inputs. Take care to handle extreme cases like negative indices into a list, infinite recursion etc.

     

5. If the syntax of your function is wrong (that is, hugs/ghci refuses to load the file containing the function), you will get no marks.

Guidelines for packaging and submitting your code              

1. The solution to Assignment N should be sent in a file called assign-N.hs assign-N.hs. . If an assignment has multiple questions, submit the answer to each question in a separate file. The solution to question M in Assignment N should be submitted in a file called assign-N-M. assign-N-M.hs. hs. For example, the solution to question 4 in assignment 2 should be submitted in a file called assign-2-4.hs assign-2-4.hs. .

     

Each file should be self contained, so you should add in the same file any auxiliary functions that you need in order to define the function that the question asks for.

             

2. Send your solutions to me by email. The Haskell files should be named according to the convention above and should be attachments to our email. Indicate the assignment number that you are submitting in the Subject of the mail. 3. Deviations from these guidelines will, in general, cost you marks.

http://www.cmi.ac.in/~ madhavan/cour ses/pr og r amming 08/how- to- submit.txt

1/1

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close