Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ES courses module called 'section.mjs to describe the course offerings at MUN for Winter
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.loadregistrarCleanedtxt
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 sectionObjectmatchsubject number, sectionid
The course should have an instance method that will check for a schedule time conflict with another course:
booleanResult sectionObjectconflictsWithsectionObject
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started