Question
Hey I need help with Java. The Question is attached as Jpeg Files. I have attached my lab exercise 2 down below, and it needs
Hey I need help with Java. The Question is attached as Jpeg Files. I have attached my lab exercise 2 down below, and it needs to be modifiend according to the Question.Any help will be highly appreciated. Thank you
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My code for lab 3
public class LabExercise3 {
//Main method
public static void main(String[] args) {
//create course object
Course comsc255 = new Course("COMSC255: Programming with Java", "Laura Lo");
//Add 20 students
comsc255.addStudent("Liz");
comsc255.addStudent("Luisa");
comsc255.addStudent("Carlos");
comsc255.addStudent("Lucy");
comsc255.addStudent("Julia");
comsc255.addStudent("Valeria");
comsc255.addStudent("Barbara");
comsc255.addStudent("Jeffrey");
comsc255.addStudent("Felipe");
comsc255.addStudent("Camila");
comsc255.addStudent("Andrea");
comsc255.addStudent("Lezlie");
comsc255.addStudent("Carolina");
comsc255.addStudent("Claudia");
comsc255.addStudent("Diego");
comsc255.addStudent("Sahsa");
comsc255.addStudent("Silvia");
comsc255.addStudent("Camilo");
comsc255.addStudent("Laura");
comsc255.addStudent("Sebastian");
//Drop 3 Students
comsc255.dropStudent("Felipe");
comsc255.dropStudent("Jeffrey");
comsc255.dropStudent("Lezlie");
//Add 2 Students
comsc255.addStudent("William");
comsc255.addStudent("Amos");
//Display course info
comsc255.print();
//Call clear method
System.out.println();
System.out.println("Students' list after calling clear()");
comsc255.clear();
//Display course info
comsc255.print();
}
}
GADDIS Cplus plus BOOK 8H Handout5-4 pdf Assignment 3-Java[189x LT X O file:///C/Users/prati/AppData/Local/Packages microsoft.w ppsAwekyb3d8bbwe/LocalState/Files/50/1742/Assignment L - The Association re ationship) Revise the Course class trom Lab Exercise 3, and add Instructor and Student dasses to perform the association relationship: Take Teach 5..60 0..3 0..3 Teacher Faculty Student Course . After assign an instructor to a course, this course should be added in the instructor's course list. After addidrop a student tofrom the course, this course should be added/drop in the student's course list. Include methods, print) that display instructor into (name, hired date and course lis), and clear() that remove all courses from the course list . Include methods, print) that display student info (name, enrolled date and ourse list), and cleart) that remove all courses from the course list. Referto the updated UML diagrams and sample output from Handout4.pdf Write a test program that creates at least two instructors, three courses, and 20 students. Each course with default capacity, adds 10 students, removes 3, adds another two, then displays the info of each course, instructor and student Submit your source codes (Course.java, Instructor.java, Student.java, and Assignment3.java) and necessary screenshots at Assignment 3 in Canvas. .Comment your name and ID in the first line of each source file. Late penalty: 2 points olf for each day late. 5-point off for the resubmission after grading. The resubmission should be made within 3-days after grading to avoid additional late penalty .Quiz 2 (Ch 9-10) on 9127(Thu) in class UML diagrams: 1:50 PM Type here to search 9/23/2018 GADDIS Cplus plus BOOK 8H Handout5-4 pdf Assignment 3-Java[189x LT X O file:///C/Users/prati/AppData/Local/Packages microsoft.w ppsAwekyb3d8bbwe/LocalState/Files/50/1742/Assignment L - The Association re ationship) Revise the Course class trom Lab Exercise 3, and add Instructor and Student dasses to perform the association relationship: Take Teach 5..60 0..3 0..3 Teacher Faculty Student Course . After assign an instructor to a course, this course should be added in the instructor's course list. After addidrop a student tofrom the course, this course should be added/drop in the student's course list. Include methods, print) that display instructor into (name, hired date and course lis), and clear() that remove all courses from the course list . Include methods, print) that display student info (name, enrolled date and ourse list), and cleart) that remove all courses from the course list. Referto the updated UML diagrams and sample output from Handout4.pdf Write a test program that creates at least two instructors, three courses, and 20 students. Each course with default capacity, adds 10 students, removes 3, adds another two, then displays the info of each course, instructor and student Submit your source codes (Course.java, Instructor.java, Student.java, and Assignment3.java) and necessary screenshots at Assignment 3 in Canvas. .Comment your name and ID in the first line of each source file. Late penalty: 2 points olf for each day late. 5-point off for the resubmission after grading. The resubmission should be made within 3-days after grading to avoid additional late penalty .Quiz 2 (Ch 9-10) on 9127(Thu) in class UML diagrams: 1:50 PM Type here to search 9/23/2018Step 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