1.

A function F(N) is defined as F(N)=N*N+N+1The movement of a toy car is based on the function F(N) which is given below:1. The toy car moves in the North direction when F(N) is between or equal to 3 and 6II. The toy car moves in the South direction when F(N) is between or equal to 6 and 15III. The toy car moves in the East Direction when F(N) is between or equal to 1 and 2IV. The toy car moves in the West Direction when F(N) is between or equal to 31 and 50V. At all other values except the ones defined above the toy car doesn't moveIf N=3, then in which direction is the toy car moving?​

Answer»

Given : A function F(N) is DEFINED as F(N)=N*N+N+1

The movement of a toy car is BASED on the function F(N) which

1. The toy car moves in the North direction when F(N) is between or equal to 3 and 6

II. The toy car moves in the SOUTH direction when F(N) is between or equal to 6 and 15

III. The toy car moves in the East Direction when F(N) is between or equal to 1 and 2

IV. The toy car moves in the West Direction when F(N) is between or equal to 31 and 50

V. At all other values except the ones defined above the toy car doesn't move

To Find : If N=3, then in which direction is the toy car MOVING?

Solution:

F(N)=N*N+N+1

N = 3

=> F(3) = 3 *3   + 3  + 1

=> F(3) = 9  + 4

=> F(3)  = 13

13 lies between  6 and 15

The toy car moves in the South direction when F(N) is between or equal to 6 and 15

Hence Toy car is moving in South direction

Learn More

Consider the function f :N—N defined byf(x) = x+1, if x is odd x-1, if x ...

brainly.in/question/19065099



Discussion

No Comment Found

Related InterviewSolutions