Question 2 0 out of 10 points Assume you have three data definition classes, Person, Student and Faculty. The Student and Faculty classes extend Person. Given the code snippet below, in Java, complete the method determinePerson TypeCount to print out how many Student and Faculty objects exist within the Person array. You may assume that each object within the Person[] is either referencing a student or Faculty object. public static void determine Person TypeCount(Person[] people){ // Place your code here } Question 1 2 out of 10 points You have been give three data definition classes, Home, NewBuild, and Fixer Upper. NewBuild and Fixer Upper extend the Home superclass. All three classes are concrete classes. Your client states that they need to be able to calcuate the minimum deposit amount for each home type. You decide that a method should be added in the Home superclass that will force the FixUpper and NewBuild subclasses to overwrite it. In Java, write the appropriate method called deposit Needed for the Home superclass. The deposit Needed method should return a double. Also, using course terminology, explain any other changes in the Home class that would be needed in order for the Home class to successfully compile.
Question 2 0 out of 10 points Assume you have three data definition classes, Person, Student and Faculty. The Student and Faculty classes extend Person. Given the code snippet below, in Java, complete the method determinePerson TypeCount to print out how many Student and Faculty objects exist within the Person array. You may assume that each object within the Person[] is either referencing a student or Faculty object. public static void determine Person TypeCount(Person[] people){ // Place your code here } Question 1 2 out of 10 points You have been give three data definition classes, Home, NewBuild, and Fixer Upper. NewBuild and Fixer Upper extend the Home superclass. All three classes are concrete classes. Your client states that they need to be able to calcuate the minimum deposit amount for each home type. You decide that a method should be added in the Home superclass that will force the FixUpper and NewBuild subclasses to overwrite it. In Java, write the appropriate method called deposit Needed for the Home superclass. The deposit Needed method should return a double. Also, using course terminology, explain any other changes in the Home class that would be needed in order for the Home class to successfully compile.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 12PE
Related questions
Question
Answer two JAVA OOP problems.
![Question 2
0 out of 10 points
Assume you have three data definition classes, Person, Student and Faculty. The Student and
Faculty classes extend Person. Given the code snippet below, in Java, complete the method
determinePerson TypeCount to print out how many Student and Faculty objects exist within the
Person array. You may assume that each object within the Person[] is either referencing a student
or Faculty object.
public static void determine Person TypeCount(Person[] people){
// Place your code here
}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6fce8742-cc7e-4301-a659-4aa9849c80b3%2Fff924f1b-411e-4893-aac1-ad9b1e39641e%2F08esfuc_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Question 2
0 out of 10 points
Assume you have three data definition classes, Person, Student and Faculty. The Student and
Faculty classes extend Person. Given the code snippet below, in Java, complete the method
determinePerson TypeCount to print out how many Student and Faculty objects exist within the
Person array. You may assume that each object within the Person[] is either referencing a student
or Faculty object.
public static void determine Person TypeCount(Person[] people){
// Place your code here
}

Transcribed Image Text:Question 1
2 out of 10 points
You have been give three data definition classes, Home, NewBuild, and Fixer Upper. NewBuild
and Fixer Upper extend the Home superclass. All three classes are concrete classes. Your client
states that they need to be able to calcuate the minimum deposit amount for each home type. You
decide that a method should be added in the Home superclass that will force the FixUpper and
NewBuild subclasses to overwrite it.
In Java, write the appropriate method called deposit Needed for the Home superclass. The
deposit Needed method should return a double. Also, using course terminology, explain any other
changes in the Home class that would be needed in order for the Home class to successfully compile.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr