Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education