Beruflich Dokumente
Kultur Dokumente
Instructions
1. Naming conventions are to be followed with extreme precision. A script
will automatically evaluate your programs. And any deviation from the
prescribed folder names, file names or function names results in that
folder/file/program/function being discarded/unrecognized. This will only
reward you with 0 marks (for that particular question).
2. Hope you have all created a bitbucket account as per the invitation sent
to you guys. You will notice a shared repo already under your username.
This is where your assignment has to be finally uploaded.
3. Firstly create your own local repo titled assignment-1. All your programs
shall be written within this repo.
4. Name each of your programs as per the question number. If the question
number is 1, then the program name should be 1.rkt.
5. Push the local assignment-1 repository to the shared bitbucket repository.
6. A set of practice questions shall also be uploaded soon (by tonight). These
practice questions are not going to be graded. However, they may help
you in solving the assignment problems.
Questions
This September commemorates the 24th anniversary of Harrys first train ride
to Hogwarts. Let us also begin your first ride into Scheme/racket similarly.
1. Write a function(WAF) wizardingTest that takes year of birth (YOB),
as input and returns as output:
OWLs if the age is 16
NEWTs if age is 18
Whats the hurry? if age is lesser that 16
Too old for school! if age is greater than 18
Confundus Charm? if age is not a natural number
Sample Run > (wizardingTest 1991)