a. Create a class named Household that includes data fields for the number of occupants and the annual income, as well as methods to get and set each field. In addition, create a default constructor that automatically sets the occupants field to 1 and the income field to 0. Save this file as Household.java. Create an application named TestHousehold that demonstrates each method works correctly. Save the file as TestHousettoldJava.
b. Create an additional overloaded constructor for the Household class you created in Exercise 3a. This constructor receives an integer parameter and assigns the value to the occupants field. Add any needed statements to TestHousehold to ensure that the overloaded constructor works correctly, save it, and then test it.
c. Create a third overloaded constructor for the Household class you created in Exercises 3a and 3b. This constructor receives two parameters, the values of which are assigned to the occupants and income fields, respectively. Alter the TestHousehold application to demonstrate that each version of the constructor works properly. Save the application, and then compile and test it.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.