Question
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
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 toStrig 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/postStudent 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
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