Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the followin program in java using condicional statements, please use comments describing each step Write a user-defined class that contains conditions. Write an application

write the followin program in java using condicional statements, please use comments describing each step image text in transcribed
image text in transcribed
Write a user-defined class that contains conditions. Write an application (client) program that uses an instance(s) of a user-defined class. Zoning Lot Area Height Limit Unit Count Limit 2000 square feet 25 feet or less More than 2000 25 feet plus 2% of 2 but 2500 square the Lot Area over feet or less 2000 More than 2500 35 feet plus 1% of 2 but 3500 square the Lot Area over feet or less 2500 More than 3500 45 feet plus .5% of 3 but 5000 square the Lot Area over feet or less 3500 Over 5000 square 52.5 feet plus .25% 4 feet of the Lot Area over 5000 Create an Zoning class with the following components: Declaration of an instance variables for the length and width of the lot, real numbers, Declaration of class constants for all the zoning lot area levels, the height limit base amounts for each zone, and the percents for each zone, Constructors - default (zero for length and width of the lot) & non-default, Accessors - returns values of the instance variables, Mutators - assigns new values to the instance variables, verify that the length 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 unitCountLimit()" method that uses the above table to compute the limit, a "public String toString()" method that displays the value of the instance variables, the lot area, the height limit and unit count limit

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_2

Step: 3

blur-text-image_3

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions