Basic JavaScript
Due: 11:00pm, Monday February 8, 2021
Max grace days: 0
Description
The goal for this assignment is to use JavaScript to generate a grade report for students in a class. This assignment contains the following files: index.html
, data.js
, code.js
, and style.css
. You need to edit the code.js
and style.css
files.
The data.js
file contains a JavaScript array that contains the data for 100 students. Each student in the array is a JavaScript object with three properties:
name
: A string containing the first and last name of the studentassignments
: An array of ten assignment gradesexams
: An array of two exam grades
The grading policy for the class is:
Assignments: 60% of final grade computed from the nine highest assignment grades
Exams: 40% of final grade
The JavaScript for this assignment must be written in the code.js
file. The output of the program should be an HTML table with a row for each student and the following columns: student’s last name, student’s first name, the average assignment grade after dropping the lowest assignment grade, the average exam grade, and the final grade. The entries in the table must be ordered by last name. The HTML must be output to the document using the document.write
JavaScript function. The HTML table should also contain a final row that displays the class average for each of the columns.
The style.css
should contain CSS rules to style the table. The last row in the table should be made visually distinct from the other rows in the table.
Turning in the Assignment
For this assignment, you must turn in a zip file containing the following files:
style.css
code.js
Submit the zip file to the appropriate folder on D2L.
Grading Criteria
Grading (out of 100 points):
- 20 points – Documentation
- 20 – complete documentation that follows the standards
- 10 points – incomplete documentation and/or documentation that does not follow the standards
- 0 points – no documentation
- 50 points – Implementation
- 50 points – correct implementation using modular design
- 30 points – correct implementation without modular design
- 0 points – incorrect implementation
- 20 points – Program output
- 10 points – CSS rules
- 10 points – complete style rules
- 5 points – incomplete style rules (for example, last table line not visually distinct)
- 0 points – no style rules