a computer routine was developed to generate two numbers (x,y) the first being a random number between 0 to 100 inclusive. and the second being less than or equal to the square root of the first . each of the following pair satisfies the routine EXCEPT a) 50.7 b)85.9 c) 1.0 d) 99.10
Answers
Answer:
ans is d)
Step-by-step explanation:
10 is greater because the square root will be nearly in 9.something
Answer:
Option (d) (99,10) does not satisfies the routine.
Step-by-step explanation:
Given :A routine to generate 2 numbers(x,y) .
First a random number between 0 to 100 inclusive and second less than or equal to square root of first.
All pairs satisfy the routine except one.
To find :The pair which does not satisfies the routine.
Solution :
(x,y) should satisfy the routine .
first number between 0 and 100 ⇒0 ≤ x ≤100
and the second is less than or equal to square root of the first⇒ y≤√x
we will check each option .
(a) (50, 7) here x=50 ,y=7
√50 = 7.07
so 7 is less than √50 = 7.07 . (50,7) satisfies the routine.
(b)( 85,9) x=85 y= 9
√85 = 9.2
so 9 is less than √85= 9.2 . (85,9) satisfies the routine.
(c) (1,0) x= 1 , y= 0
√1 = 1
10 is less than √1 = 1 . (1,0)satisfies the routine.
(d) (99,10)
√99 = 9.9
10 is not less than or equal to √99=9.9.
so (99,10) does not satisfy the routine.
∴ correct answer is option (d) (99,10) which does not satisfies the routine.
#SPJ2