QUESTION IMAGE
Question
which of the following would be the most appropriate name for the following procedure (currently named mystery), where number is any number and the procedure check (number) returns true if the number is an integer and false if not?
procedure mystery (number)
{
if (number > 0 and check (number))
{
return (true)
}
return (false)
}
is_neg_int
is_neg_float
is_pos_float
is_pos_int
Brief Explanations
The procedure checks if a number is greater than 0 (positive) and an integer. So it should be named according to these two conditions.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
IS_POS_INT