Question: .lT-Mobile 5:01 PM ? https://elearning.utdallas.edu 28 The following Notepad files are expected to be submitted as the solution to Problem 1 TwoDFigure.txt .Circle.txt Rectangle.txt FigureCalculatortxt
.lT-Mobile 5:01 PM ? https://elearning.utdallas.edu 28 The following Notepad files are expected to be submitted as the solution to Problem 1 TwoDFigure.txt .Circle.txt Rectangle.txt FigureCalculatortxt Problem 2: PARTI Create an abstract Java class named "Student" in a package named "STUDENTS. This class has 4 attributes (1) student ID: protected, an integer of 10 digits . (2) student name: protectecd (3) student group code: protected, an integer (1 for undergraduates, 2 for graduate students) (4) student major: protected (e.g.: Business, Computer Class Student declaration provides a default constructor, get methods and set-methods for the attributes, a public abstract method (displayStudentData0). PART II: Create a Java class named "Undergraduate in the same package, i.e. STUDENTS, that extends the above class Student. Class Undergraduate has its own one attribute undergradLevel: private, a String, to indicate the student level: freshman, sophomore, junior, or senior Class Undergraduate declaration provides: .a default constructor another constructor that accepts 4 parameters: student ID student full name, major, and undergraduate level . get-method and set-method of its own attribute . a method to return the priority code to register classes (return 1 if senior, 2 if junior, and so on) .a method (displayStudentData)) that implements the abstract and prints out information of a student in a format like the following sample (all in one line): Student ID: 1234567890; John Smith; senior undergraduate; Business
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
