Additional details for methods in each class: You are required to implement the following method in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Additional details for methods in each class: You are required to implement the following method in each class, following its respective description Person Class Appropriate getter and setter methods. toString(): Override this method to provide a meaningful string representation of the object. Martyr Class Appropriate getter and setter methods. toString(): Override this method to provide a meaningful string representation of the object. Live Person Class: toString(): Override this method to provide a meaningful string representation of the object. Family Class: addMember(Person member, String roleInFamily): Adds a person to the family with a specified role (The permitted roles include mom, dad, son, and daughter). removeMember(Person member): Removes a person from the family. getMembers(): Retrieves the list of family members. getFamilyName(): Retrieves the Family Name. setFamilyName(String familyName): set a name for family. addParent(Person parent): Adds a parent to the family. removeParent (Person parent): Removes a parent from the family. getParents(): Retrieves the list of family parents. toString(): Override this method to provide a meaningful string representation of the object. equals(Object obj): Override this method to consider two families as equal if they have the same number of martyrs. Manager Class: addFamily (Family family): Adds a new family to the system. updateFamily (String familyName, Family updatedFamily): Updates information about a family based on Family name. deleteFamily (String familyName): Deletes a family from the system based on Family name. searchByName(String familyName): Searches for a family based on Family name. searchPersonByID(String personID): Searches for a person based on their ID. calculate TotalMartyrs(): Returns the total number of martyrs in the system. calculate TotalOrphans(): Returns the total number of orphans in the system. Orphans are individuals whose parents (both mom and dad) have passed away. calculate TotalLive Persons(): Returns the total number of live persons in the system. calculate Family Statistics(String familyName): Returns statistics for a specific family, including the number of martyrs, orphans, and live persons. Store the returned values in ArrayList. calculate GlobalStatistics(): Returns overall statistics for the system. Store the returned values in ArrayList. toString(): Override this method to provide a meaningful string representation of the object. Page3 Additional details for methods in each class: You are required to implement the following method in each class, following its respective description Person Class Appropriate getter and setter methods. toString(): Override this method to provide a meaningful string representation of the object. Martyr Class Appropriate getter and setter methods. toString(): Override this method to provide a meaningful string representation of the object. Live Person Class: toString(): Override this method to provide a meaningful string representation of the object. Family Class: addMember(Person member, String roleInFamily): Adds a person to the family with a specified role (The permitted roles include mom, dad, son, and daughter). removeMember(Person member): Removes a person from the family. getMembers(): Retrieves the list of family members. getFamilyName(): Retrieves the Family Name. setFamilyName(String familyName): set a name for family. addParent(Person parent): Adds a parent to the family. removeParent (Person parent): Removes a parent from the family. getParents(): Retrieves the list of family parents. toString(): Override this method to provide a meaningful string representation of the object. equals(Object obj): Override this method to consider two families as equal if they have the same number of martyrs. Manager Class: addFamily (Family family): Adds a new family to the system. updateFamily (String familyName, Family updatedFamily): Updates information about a family based on Family name. deleteFamily (String familyName): Deletes a family from the system based on Family name. searchByName(String familyName): Searches for a family based on Family name. searchPersonByID(String personID): Searches for a person based on their ID. calculate TotalMartyrs(): Returns the total number of martyrs in the system. calculate TotalOrphans(): Returns the total number of orphans in the system. Orphans are individuals whose parents (both mom and dad) have passed away. calculate TotalLive Persons(): Returns the total number of live persons in the system. calculate Family Statistics(String familyName): Returns statistics for a specific family, including the number of martyrs, orphans, and live persons. Store the returned values in ArrayList. calculate GlobalStatistics(): Returns overall statistics for the system. Store the returned values in ArrayList. toString(): Override this method to provide a meaningful string representation of the object. Page3
Expert Answer:
Answer rating: 100% (QA)
In the Person class you need to implement getter and setter methods for the class attributes The toString method should be overridden to provide a mea... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
In Exercises 7683, use a graphing utility to graph the function. Use the graph to determine whether the function has an inverse that is a function (that is, whether the function is one-to-one). f(x)...
-
On December 31, 2013, LeBlanc Corporation had t Record and post transactions; he following shareholders' equity accounts: LEBLANC CORPORATION Balance Sheet (partial) December 31, 2013 Shareholders'...
-
How does Windows 11 process and threads work in process management
-
Both PM and benefits information systems make provisions for employee access and input. What access would you provide in each of these systems, and what leeway would you provide employees in reading,...
-
You are selling a product on commission, at the rate of $1,000 per sale. To date you have spent $800 promoting a particular prospective sale. You are confident you can complete this sale with an...
-
You're a cashier at a local grocery store. You notice many customers buying kiwifruit, but you've never tried kiwifruit yourself. When the price of kiwifruit suddenly drops, you notice that your...
-
The COVID-19 pandemic affected companies in the food industry in unique ways, particularly during 2020. Ruth's Hospitality Group (Ticker: RUTH) develops and operates fine dining restaurants under the...
-
The 13th garnered acclaim from a number of film critics. It was nominated for the Academy Award for Best Documentary Feature at the 89th Academy Awards, and won the Primetime Emmy Award for...
-
Your group has been appointed as external auditors of the telstra company for the financial report. You are required to design an audit program for this company. Your audit program steps should be...
-
Mario has an AGI of $240,000 and decides to donate to charity. In 2023, he donates cash of $43,000 and stock currently worth $78,000 (tax basis $57,000). Assume he has held the stock for 3 years. He...
-
A dysfunctional effect of basing CEO incentives on stock price is to encourage excessive risk taking. Such risk taking affects not only the creditors of the company but also other stakeholders...
-
Adam has filed as head of household. She divorced and received $4000 /year in alimony. Adam claims the children as her dependents, but the expenses are divided 50/50 with her ex-husband. Adam's...
-
Sizzle (Pty) Ltd is a beauty and fragrance retailer with walk-in stores located across South Africa as well as an online store where customers can have their goods delivered to their doors. The...
-
Kevin and Sue have two children, ages 8 and 14. They spend $6,200 per year on eligible employment related expenses for the care of their children after school. Kevin and Sue each earns a salary of...
-
The time to assemble the first unit on a production line is 10 hours. The learning rate is 0.94. Approximately how long will it take for the seventh unit to be assembled? The number of hours needed...
-
Janie graduates from high school in 2012 and enrolls in college in the fall. Her parents pay $4,000 for her tuition and fees. a. Assuming Janie's parents have AGI of $170,000, what is the American...
-
In the 2012 tax year, Michelle paid the following amounts relating to her 2010 tax return: Tax deficiency..........................................$5,000 Negligence...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
In this chapter, we had only expressed eigenstates of the harmonic oscillator Hamiltonian through repeated action of the raising operator, \(\hat{a}^{\dagger}\). This gives us a concrete algorithm...
-
In this chapter, we noted that the Hilbert space of the harmonic oscillator corresponds to all those states that can be accessed from the ground state through action by an anatic function of...
-
Supersymmetry is a proposed extension of the symmetries of space-time beyond that of just familiar Lorentz transformations and translations. A supersymmetry transformation interchanges fermions and...
Study smarter with the SolutionInn App