Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Intellij IDEA 2 0 2 4 . 1 Define a class named Course to store information on a university course. Each course object should
In Intellij IDEA
Define a class named Course to store information on a university course. Each course object should store:
A course title a String no default, must be given when creating the course
The number of credits for the course an int default is
The name of the instructor for the course a String default is "Staff"
Course level a String either "Grad" or "Undergrad"; default is "Undergrad"
Your class should have public methods which provide access to each of the fields and public methods which allow changes to each of the fields. You class should have two constructors. One with all four fields and one with only the course name. Each constructor should initialize all four fields.
In your program, instantiate two course objects: using the single parameter constructor picking your own value for the course title, one using the full constructor picking your own values for the fields.
Now define a student class picking your own fields and appropriate constructors. Remember to include all appropriate methods Instantiate at least two student objects. The student objects do not need to be linked to the course objects.
To turn in your program, zip compress the directory created with your IntelliJ project and turn in the zipped compressed file.
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