Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Build a java code meeting following requirements Write a program which tracks enrollment of students in a course. Use a StudentEnrolled class, a Grades class,
Build a java code meeting following requirements
Write a program which tracks enrollment of students in a course. Use a StudentEnrolled class, a Grades class, a Courses class and a Course Driver class. Grades class should store a course number and letter grade. This class should also provide a way to check the letter grade to see if qualifies as a prerequisite. The criteria is any grade >=C. Finally provide a toString() method so that Grades can be easily printed. StudentEnrolled class should have a unique student Id, provide a way to add and store Grades, and check Grades to see if the Student has a course prerequisite. Finally, provide a toString() method that prints a student Id along with the student's Grades. Courses are defined by their course number, total number of sections allowed, and total number students per section allowed. Courses class must provide a way to enroll Students into the course. Students should only be enrolled if they meet the prerequisites, and if there is room in the course. A new section should only be created if its necessary to accommodate the number of students but assume the first section will be necessary, and if the number of sections hasn't yet reached capacity. Qualified students who try to enroll once the course is full must be put on a waitlist. Courses class must provide a way to add and store prerequisites, to store and count Students enrolled in each section, and to store and count Students on the waitlist. Also provide a toString() method which displays course information. The Course Driver class should create a new course ME234 which has 2 sections and 2 students/section. Add ENGG147 and ME123 as prerequisite. Create a new student with id 123456 and a new grade ME123 B while adding to the student. Try to enroll the student into course. Print output for course ME234. Write a program which tracks enrollment of students in a course. Use a StudentEnrolled class, a Grades class, a Courses class and a Course Driver class. Grades class should store a course number and letter grade. This class should also provide a way to check the letter grade to see if qualifies as a prerequisite. The criteria is any grade >=C. Finally provide a toString() method so that Grades can be easily printed. StudentEnrolled class should have a unique student Id, provide a way to add and store Grades, and check Grades to see if the Student has a course prerequisite. Finally, provide a toString() method that prints a student Id along with the student's Grades. Courses are defined by their course number, total number of sections allowed, and total number students per section allowed. Courses class must provide a way to enroll Students into the course. Students should only be enrolled if they meet the prerequisites, and if there is room in the course. A new section should only be created if its necessary to accommodate the number of students but assume the first section will be necessary, and if the number of sections hasn't yet reached capacity. Qualified students who try to enroll once the course is full must be put on a waitlist. Courses class must provide a way to add and store prerequisites, to store and count Students enrolled in each section, and to store and count Students on the waitlist. Also provide a toString() method which displays course information. The Course Driver class should create a new course ME234 which has 2 sections and 2 students/section. Add ENGG147 and ME123 as prerequisite. Create a new student with id 123456 and a new grade ME123 B while adding to the student. Try to enroll the student into course. Print output for course ME234
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