Vous êtes sur la page 1sur 1

Lab 4 Marking Scheme

Understanding your marks:

In the comments section you should have a table of marks for each test ran on that specific question. Each
question is worth 4-5marks depending on the number of tests cases.
For example Q1[1, 0, 1, 0] = 2/4:
The above comment shows that your program has passed tests 1 & 3 but failed tests 2 & 4.
Note: If the table is Empty then your file was either not submitted or did not run!

Test cases:
Q1 - exp:
1. exp(2,15)

2. exp(4,1)

3. letterGrade(8453,0)
4. letterGrade(3,9)

== 32768
== 4
== 1
== 19683

Q2 - date:
1. date(8,24,1993)
2. date(3,12,1990)
3. date(5,5,1969)
4. date(2,6,2016)
5. date(7,4,2000)

== "Aug 24, 1993


== "Mar 12, 1990"
== "May 5, 1969
== "Feb 6, 2016
== "Jul 4, 2000

Q3 - vowelsCount:
1. Computer Science is pretty freaking AWESOME!!!
2. Jonathan, that is my pencil!
3. Good sir, I beg your pardon.
4. My dog's name is Dexter!
5. JENNY!! THE APARTMENT IS ON FIRE!! AAAAHHHH!!!
Q4 - onethird:
1. onethird(211)
2. onethird(91)
3. onethird(2)
4. onethird(929)
5. onethird(9863)

==
==
==
==
==

15
7
9
6
13

== 0.335706745131511
== 0.3388479652215916
== 0.625
== 0.3338717395813177
== 0.33338402956147606

Q5 - isPalindrome, onlyLetters, isPalindromePlus:




1. isPalindrome('aibohphobia')



2. onlyLetters('Draw, O coward!')
3. isPalindromePlus('Michael marked your lab ;)')
4. isPalindromePlus("As I pee, sir, I see Pisa!")
5. isPalindromePlus("Go hang a salami! I'm a lasagna hog")

== True
== drawocoward'
== False
== True
== True

NOTE ( Filename was INVALID ):


We are no longer accepting incorrect file names. By now you guys should know how to name your files
correctly and learn to use your MACID (your login for AVENUE) and NOT your STUDENT#.
NOTE ( 0 and NOT PROVIDED A COMMENT ):
If you have NOT received a mark that could be due to the fact that your programs did not run or you have
not submitted your assignment to Avenue. If you have not received any comments and submitted a file,
please contact one of the Teaching Assistants during their office hours or tutorials.

Vous aimerez peut-être aussi