Question: Create an ES 6 courses module called 'section.mjs ' to describe the course offerings at MUN for Winter 2 0 2 4 . The module

Create an ES6 courses module called 'section.mjs' to describe the course offerings at MUN for Winter 2024.
The module should provide a Section class which has at least the following instance properties:
section.subject
section.number
section.name
section.sectionid
section.crn
section.room
section.type
Construct the course description objects for each course section by parsing the provided data file 'registrarCleaned.txt'. The section objects should be created using the static section method load:
allSections = Section.load('registrarCleaned.txt')
This static method should return a list of Section objects described in the datafile. The class should have the following method to check if a Section object matches a specification:
booleanResult = sectionObject.match(subject, number, sectionid)
The course should have an instance method that will check for a schedule time conflict with another course:
booleanResult = sectionObject1.conflictsWith(sectionObject2)
The checkSched.mjs script uses these methods to select courses from the available list. This script should work if you implement your sections module correctly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!