Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that we have a class with some method that takes four input values, each representing one side of a proper tetragon. The function returns

Suppose that we have a class with some method that takes four input values, each
representing one side of a proper tetragon. The function returns the information (a
String) telling whether the given values represent the side lengths of a Square, a
Rectangle, or a Trapezoid.
public class identifyshapes
public String identifyTetragon(int a, int b, int c, int d) throws
Not:AValidTetragon,
InvalidSideException
The method throws a NotAValidTetragon exception if the supplied values do not fit
into any of the possible three tetragons it is expected to find out, and the function throws
a InvalidSideException if any of the supplied values do not represent a valid value
for a geometric shape.
Types of proper tetragons the function can discriminate are:
a. Identify the equiralence classes for both the input and output domains of the above
function, and come up with a proper diagram (similar to the partitioning diagram
arailable on slide #26 of lecture notes for week09) that depict those equiralence
classes.
b. Derelop a set of test cases, i.e., test suite for the method for which a Jara signature is
given above. You are NOT expected to write the Jara source code for the
implementation of the above given method, but only to list the test inputs, and
expected outputs, i.e., fill in the below table. You can add rows to the below table as
required. Make sure that each equiralence class pou identified above is corered with at
least one test case, and also boundary ralue analysis is applied for all boundaries
present in your partitions. Hint: Do not neglect the imvalid behavior tests!
image text in transcribed

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions