AutoSave O Of A 2. ) INT201 OOP Lab7 2020-2 - Protected View - Saved to this PC - P Search Anass Alhami File Home Insert Draw Design Layout References Mailings Review View Help 8 Share P Comments O PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing Lab 7- Exercises Consider the following class hierarchy: Person -name:String -address:String +Person(name:String, address:String) +getName ():String +getAddress():String +setAddress(address:String): void +printinfo (): void .---------..--..--.-- "name (address)" Student Teacher -numCourses: int = 0 -courses:String[] = {} - grades:int[] = {} -numCourses:int 0 -courses:String[] = {} +Student (name:String, address:String) +addCourseGrade(course:String, grade:int):void +printGrades (): void +getAverageGrade(): double +printinfo (): void . +Teacher(name:String, address:String) +addCourse(course:String):boolean •---- +removeCourse(course:String): boolean +printinfo ():void Return false if the course already existed Return false if the course does not exist "Student: name (address)" "Teacher: name (address)" 1. Implement the above class hierarchy using Java 2. Write a program that reads information concerning one undergraduate and one graduate student and print the information. Page 1 of 1 52 words D Focus M + 86% 5:02 PM P Type here to search ENG 3/22/2021 18

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
AutoSave O ff
INT201_0OP_Lab7_2020-2 - Protected View - Saved to this PC -
Search
Anass Alhami
File
Home
Insert
Draw
Design
Layout
References
Mailings
Review
View
Help
A Share
O Comments
PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
Lab 7- Exercises
Consider the following class hierarchy:
Person
-name:String
-address:String
+Person(name:String, address:String)
+getName ():String
+getAddress():String
+setAddress(address:String):void
+printlnfo (): void
"name (address)"
Student
Teacher
-numCourses:int = 0
-numCourses:int = 0
-courses:String[] = {}
-grades:int[] = {}
-courses:String[] = {}
+Student (name:String,
address:String)
+addCourseGrade(course:String,
grade:int):void
+printGrades (): void
+getAverageGrade(): double
+printInfo ():void
+Teacher (name:String,
address:String)
+addCourse(course:String):boolean
+removeCourse(course:String):boolean
+printInfo (): void
Return false if the course already existed
Return false if the course does not exist
"Student: name(address)"
"Teacher: name(address)"
1. Implement the above class hierarchy using Java
2. Write a program that reads information concerning one undergraduate and one graduate student and
print the information.
Page 1 of 1
D Focus
52 words
86%
5:02 PM
O Type here to search
ENG
3/22/2021
18
Transcribed Image Text:AutoSave O ff INT201_0OP_Lab7_2020-2 - Protected View - Saved to this PC - Search Anass Alhami File Home Insert Draw Design Layout References Mailings Review View Help A Share O Comments PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing Lab 7- Exercises Consider the following class hierarchy: Person -name:String -address:String +Person(name:String, address:String) +getName ():String +getAddress():String +setAddress(address:String):void +printlnfo (): void "name (address)" Student Teacher -numCourses:int = 0 -numCourses:int = 0 -courses:String[] = {} -grades:int[] = {} -courses:String[] = {} +Student (name:String, address:String) +addCourseGrade(course:String, grade:int):void +printGrades (): void +getAverageGrade(): double +printInfo ():void +Teacher (name:String, address:String) +addCourse(course:String):boolean +removeCourse(course:String):boolean +printInfo (): void Return false if the course already existed Return false if the course does not exist "Student: name(address)" "Teacher: name(address)" 1. Implement the above class hierarchy using Java 2. Write a program that reads information concerning one undergraduate and one graduate student and print the information. Page 1 of 1 D Focus 52 words 86% 5:02 PM O Type here to search ENG 3/22/2021 18
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Multimedia tools and applications
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education