Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment, you are going to write a program that stores and displays information about a set of siblings. You will need 3 separate

For this assignment, you are going to write a program that stores and displays information about a set of siblings. You will need 3 separate files: one for the Siblings class, one for the SiblingsTester class, and one for the Family class.

Siblings Class This class will simulate a set of Siblings. You will need 5 instance variables for: Users name Number of brothers Number of sisters Names of brothers Names of sisters.

You will need a getter and setter to access each of the instance variables (10 methods total).

You will need to include an argument constructor and a no-argument constructor to initialize the instance variables.

Siblings Tester Class This class will test the methods and constructors of the Siblings Class. Create 2 objects, one with the argument constructor and one with the no-argument constructor.

On the object constructed with the argument constructor, call all the getter methods to make sure the instance variables were initialized correctly.

On the object constructed with the no-argument constructor, call all the setter methods and set the instance variables to the values of your choosing. Then, call all the getter methods to make sure the setters worked correctly.

FamilyTree Class This class will use the Siblings class to simulate 3 sets of Siblings. Below is the Siblinginformation you will use:

User Name Num of Brothers Brother Names Num of Sisters Sister Names

Create 2 objects of the Siblings class using the argument constructor and 1 object with the no argument constructor.

Set the values of the instance variables. to the information in the table.

Using the getter methods, display each set of Siblings information as a sentence, as shown below.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Working with other project stakeholders for support.

Answered: 1 week ago