Question: Write in java Task 2: Create a new Course class with the attribute of: The course name (name) as a String. The course ID number

Write in java Write in java Task 2: Create a new Course class with the

Task 2: Create a new Course class with the attribute of: The course name (name) as a String. The course ID number (ID) as a long Note that all data members should be declared private and you can add any needed constructors and methods. Create a method to Strig for this class. Update the class Student and class PostStudent to have an array of Course objects with maximum size of 5 instead of having an array of integers that was contain courses IDs. Update the AddCourse method to receive the course object as an argument and add it to the array. Also update the implementation of add mark method and any other methods that needed to be updated based on that change. At every cycle in the main you need to create Course object and fill it (read the course ID and course name from the user and then use it to fill the student/post Student course array by sending the object as argument to the AddCourse method). Fill all the required information (student name, id, courses and marks/grades) of the array of objects and then after entering the students' details (5 students for example) a new loop should print all this information, on the screen

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!