$30
Assessment 2: Write a function to return a value
(15%)
Due: February 12th, 2019
Students will have to write a function to accept a parameter, and return a value based on the contents of the parameter sent in.
Instructions
Using an HTML file, use the <script block at the top of the page to write a function that will evaluate the incoming parameter and return a different value based on that parameter.
Please refer to the rubric at the end of this document for evaluation details.
Requirements
• Function and variables should be named something meaningful
• The evaluation of the parameter coming in and its resulting value should make sense
• Receive the returned value on a line of JavaScript outside of the function
Submission
• Upload to D2L Dropbox folder labeled “Assessment 2: Write a Function”
Evaluation
This assessment is graded out of 16 points and will be evaluated using the following rubric.
Learners may receive partial scores or a zero for unacceptable work.
Criteria Does Not Meet Expectations
1 Partially Meets Expectations
2 Meets
Expectations
3 Exceeds Expectations
4 Max Points
Quality of Implementation Inadequate comprehension of concepts or theories presented in course materials. Partial comprehension of concepts or theories presented in course materials. Adequate comprehension of concepts or theories presented in course materials. Broad and in-depth comprehension of concepts or theories presented in course materials. 4
Required Components Work is missing/does not address required components indicated in the instructions. Work is missing/does not address some of the required components indicated in the instructions. Work includes all components and meets the requirements indicated in the instructions. Work includes and exceeds the requirements indicated in the instructions. 4
Code Quality Unclear organization. Many grammatical, spelling, or punctuation errors. Some signs of logical organization. A few grammar, spelling, or punctuation errors. Organization supports purpose. Almost no grammatical, spelling, or punctuation errors. Organization fully supports purpose. No grammatical, spelling, or punctuation errors. 4
Functionality Does not function, errors are present. Some noted requirements behave as required, however some do not. All noted requirements behave as required. All noted requirements behave as required, following best practices outlined in class. 4