A student record has the following: Student name Student surname Student Number Final markF Grade comment Create a StudentRecord class, complete with accessors and mutators (get and set methods) for the instant variables as well as the toString method for formatting the object. The StudentRecord class must have an abstract method called calculatefinalMark An IT student has Test1, Test2 and Test3. The IT student's final mark is calculated as (Test1*0.2 + Test2*0.3 + Test3*0.5). The subminimum for a pass is 40% on Test3. ITStudentRecord An Accounting student has Test1 and Test2. The Accounting student's final mark is calculated as (Tes1*0.4 + Test2*0.6). The subminimum for a pass is 40% on Test2. AccountingStudentRecord Both the sub classes must have at least two constructors, one with null argument and one with all pertinent instance variables. PS. The final mark and the grade comment cannot be instance variables. The grade comment can be a pass with distinction if the final mark is 80% or greater. The grade comment is pass ifthe final mark is greater than 50%. Students with a final mark more than 45% have a comment that says qualify for a Supplementary assessment, otherwise the grade comment will be fail. Create a method in the subclasses that will be used to assign the grade comment. If a student does not meet the subminimum, the grade comment must be fail with subminimum. The StudentRecord class must be an abstract class. Both the ITStudent class and the AccountingStudent class must inherit from the abstract StudentRecord class. Instantiate and output two IT students, using both constructors Instantiate and output two Accounting students, using both constructors Your application should have a minimum of 5 classes (class with the main method, class where most of the application will be running from, a student record class, IT student class and Accounting student class) 1.StudentRecord 2.ITStudentRecord 3.AccountingStudentRecord 4.ClassRecords 5.ClassRecordsMain

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

A student record has the following:
Student name
Student surname
Student Number
Final markF
Grade comment


Create a StudentRecord class, complete with accessors and mutators (get and set methods) for the
instant variables as well as the toString method for formatting the object.
The StudentRecord class must have an abstract method called calculatefinalMark
An IT student has Test1, Test2 and Test3. The IT student's final mark is calculated as (Test1*0.2 +
Test2*0.3 + Test3*0.5). The subminimum for a pass is 40% on Test3. ITStudentRecord
An Accounting student has Test1 and Test2. The Accounting student's final mark is calculated as
(Tes1*0.4 + Test2*0.6). The subminimum for a pass is 40% on Test2. AccountingStudentRecord
Both the sub classes must have at least two constructors, one with null argument and one with all
pertinent instance variables.
PS. The final mark and the grade comment cannot be instance variables.
The grade comment can be a pass with distinction if the final mark is 80% or greater. The grade
comment is pass ifthe final mark is greater than 50%. Students with a final mark more than 45%
have a comment that says qualify for a Supplementary assessment, otherwise the grade comment
will be fail. Create a method in the subclasses that will be used to assign the grade comment. If a
student does not meet the subminimum, the grade comment must be fail with subminimum.
The StudentRecord class must be an abstract class.
Both the ITStudent class and the AccountingStudent class must inherit from the abstract
StudentRecord class.
Instantiate and output two IT students, using both constructors
Instantiate and output two Accounting students, using both constructors

Your application should have a minimum of 5 classes (class with the main method, class where most of the application
will be running from, a student record class, IT student class and Accounting student class)

1.StudentRecord
2.ITStudentRecord
3.AccountingStudentRecord
4.ClassRecords
5.ClassRecordsMain

Expert Solution
steps

Step by step

Solved in 7 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY