Question: I need help with this assignment Define Java Classes and Instantiate their Objects In this assessment, you will design and code a simple Java application

I need help with this assignment

Define Java Classes and Instantiate their Objects

In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a specific way. You can use either the Toolwire environment or your local Java development environment to complete this assignment.

The requirements of this application are as follows :The application is to define a Java class called Course. The Course class has the following attributes:

< >< >- an int field to store the credit hours of the course (e.g.6)The application then instantiates, in order, seven instances (objects) from the Course class and assigns to each instance the following values:

Order of instantiation

Course Object code attribute

Course Object creditHours attribute

1

IT1006

6

2

IT4782

3

3

IT4789

3

4

IT4079

6

5

IT2230

3

6

IT3345

3

7

IT2249

6

Finally, the application prints out, in the same order as the instantiation order, the attributes of these instances using this format:

[order of instantiation] Course Code (Course Credit Hours)

Successful completion of this assignment will show the correct order of object instantiation and the correct attributes of each object when the application is run. Your program output should look like this sample output:

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!