BMI calculator function calculates the BMI taking as the input two variables which are  height (in cm – an integer value) and weight (in kg – with two digit precision). Valid height  is between 30cm and 250cm. Valid weight is between 20 and 300kg. A test input is a pair  (height, weight). If a given variable’s value is too low or too high, the system gives a warning  message “X too low” or “X too high”), where X denotes height or weight. Find equivalence classes (EP) for all input of the specification.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.2: The If-else Statement
Problem 8E
icon
Related questions
Question

A BMI calculator function calculates the BMI taking as the input two variables which are 
height (in cm – an integer value) and weight (in kg – with two digit precision). Valid height 
is between 30cm and 250cm. Valid weight is between 20 and 300kg. A test input is a pair 
(height, weight). If a given variable’s value is too low or too high, the system gives a warning 
message “X too low” or “X too high”), where X denotes height or weight.

Find equivalence classes (EP) for all input of the specification.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT