Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

How is a tax credit different from a tax deduction?

Answered: 1 week ago

Question

=+Does the design support the intended message?

Answered: 1 week ago