Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
.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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Explain consumer behaviour.

Answered: 1 week ago

Question

Explain the factors influencing consumer behaviour.

Answered: 1 week ago