Question: use java you don't need to know how they work class Person ( public int howManyChildren)t... h of children the Person has / returns an
you don't need to know how they work class Person ( public int howManyChildren)t... h of children the Person has / returns an integer that is the number public String getName // returns the name of the Person class PersonReader public PersonReader /I a construetor creates its own Reader object, and whatever else public Person readPerson) .. // reads enough input data to make an object of the class Person, and returns that object. (This is like rmat's readiine( ) method, which reads and returns a string t is intended to read the data about 20 people, storing each Complete the program below. I in an object of type Person. Then it prints the name of the Person (s) with the least number of children. Your code should handle case where two or more parents have the same number of children (that could be highest) public class WhoHasTheMostchildren f public static void main (String[] args)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
