Question: How would i solve this in JAVA code? Thank you if you take the time to help me with this Question 3: Problem Description: Design

 How would i solve this in JAVA code? Thank you if

How would i solve this in JAVA code? Thank you if you take the time to help me with this

Question 3: Problem Description: Design a class named Courses (subclass) that extends Student (superclass). The superclass Student contains: Two String data fields named Department and School A Date data field named dateCreated define as: java.util.Date dateCreated; A default constructor (date constructed) that generates the current date and time. The subclass Courses contains: Three double data fields named gradel, grade2, and grade3. A no-arg constructor that creates a default course. A constructor that creates a course with the specified gradel, grade2, and grade3. The accessor methods for all three data fields. A method named getGrade() that returns the overall grade of these courses. A method named getAverage() that returns the Average of these courses. A method named toString() that returns a string description for the courses, Current Date and Time, Department and School. 1) (3 marks) Draw the UML diagram that involves the classes Student and Courses. 2) (7 marks) Implement Student and Courses classes. Write a test program that creates a Courses object with grades 70, 85, 92, and displays the students overall grade, the courses average grade and the description that return by toString() method. Output Sample Date Created: Mon Jan 04 13:53:59 UTC 2021 Department : Computer Engineer School : Humber College Courses Grade: CENG217 = 70.0 CENG257 = 85.0 TECH104 = 92.0 Overall Grades = 247.0 Average Grade 82.33

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!