Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Nested-if-else statements [2pt] Your Own User-Defined Class that Contains Conditions- The residential zoning rules in a town limit the height and number of units
3. Nested-if-else statements [2pt] Your Own User-Defined Class that Contains Conditions- The residential zoning rules in a town limit the height and number of units you can build on a lot of a certain size. The following table conatains formulas for computing a height and unit limits. Unit Count Limit ning Lot Area Height Limit 5 feet 25 feet plus 2% of the Lot Area over 2000 35 fet plus 1% of the Lot Area 12000 square feet or less More than 2000 but 2500 square feet or less More than 2500 but 3500 square feet or less ver 2500 45 feet plus .5% of the Lot Area over 3500 52.5 feet plus .25% of the Lot Area More than 3500 but 5000 square feet or less ver 5000 square feet 4 over 5000 Create an Zoning class with the following: . Declaration of an instance variables for the length and width of the lot, real .Declaration of class constants for all the zoning lot area levels, the height limit . Constructors - default (zero for length and width of the lot) & non-default . Mutators- assigns new values to the instance variables, verify that the length numbers base amounts for each zone, and the percents for each zone . Accessors returns values of the instance variables and width is non-negative, or assign zero a "public double heightLimit)" method that uses the above table to compute the limit . a "public int unitCountLimitO" method that uses the above table to compute the mit . a "public String toString0" method that displays the value of the instance variables, the lot area, the height limit and unit count limit Code then test (complete and check against Expected Result below) your method by creating application (client) class ZoningApp.java to test your Zoning class. . Write pseudocode for solving the above problem 3. Nested-if-else statements [2pt] Your Own User-Defined Class that Contains Conditions- The residential zoning rules in a town limit the height and number of units you can build on a lot of a certain size. The following table conatains formulas for computing a height and unit limits. Unit Count Limit ning Lot Area Height Limit 5 feet 25 feet plus 2% of the Lot Area over 2000 35 fet plus 1% of the Lot Area 12000 square feet or less More than 2000 but 2500 square feet or less More than 2500 but 3500 square feet or less ver 2500 45 feet plus .5% of the Lot Area over 3500 52.5 feet plus .25% of the Lot Area More than 3500 but 5000 square feet or less ver 5000 square feet 4 over 5000 Create an Zoning class with the following: . Declaration of an instance variables for the length and width of the lot, real .Declaration of class constants for all the zoning lot area levels, the height limit . Constructors - default (zero for length and width of the lot) & non-default . Mutators- assigns new values to the instance variables, verify that the length numbers base amounts for each zone, and the percents for each zone . Accessors returns values of the instance variables and width is non-negative, or assign zero a "public double heightLimit)" method that uses the above table to compute the limit . a "public int unitCountLimitO" method that uses the above table to compute the mit . a "public String toString0" method that displays the value of the instance variables, the lot area, the height limit and unit count limit Code then test (complete and check against Expected Result below) your method by creating application (client) class ZoningApp.java to test your Zoning class. . Write pseudocode for solving the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started