Question: Java language First: The Course class Suppose you need to process course information. Each course has a name and has students enrolled. You should be

Java language Java language First: The Course class Suppose you need to process course
information. Each course has a name and has students enrolled. You should

First: The Course class Suppose you need to process course information. Each course has a name and has students enrolled. You should be able to add/drop a student to/from the course. Design a class named Course that contains: A private String data field named courseName for the Course (default null). A private int data field named student Number for the Course (default). - A private ArrayList of String data field named students to store the students for the course. A constructor that creates a course object with the specified name Course(String name) The accessor and mutator methods for courseName. The accessor method for studentNumber. A void method named addStudent (String s) adds a new student to the course (add a student name to the ArrayList). . A void method named dropStudent (String s) drops a student from the course (remove student name from the ArrayList). A void method named print Information prints the name of the course, number of students in the course, and name of all students in the course. Second: UML Diagram Draw the UML class diagram for the class course and then implement the class. In the main class: o Create two objects from the class course. Add 3 students in the first course and 4 students in the second course. o Remove one student from the first course. o Call the method print Information for both courses. Draw the UML object diagram for objects created in the main method. Outcome2. Design, implement and evaluate a computing-based solution to meet a given set of computing requirements in the context of the program's discipline

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!