# data[].attributes.body
May I know how do we treat "What is the height of the person" and "What was the stock price yesterday" as boolean features?

# data[].attributes.body
YES, HE IS EXECUTIVE.
k=3,
OUT OF THREE PEOPLES : GEORGE, RACHEL, and ANNE(the nearest neighbour),
2 OF THEM ARE EXECUTIVE, 1 is none.

# data[].attributes.body
determine 3(K=3) Nearest distance, then get the majority class from those 3 Nearest neighbors(George - class No, Rachel - class Yes & Anne - class Yes)
Hence,  we get class from Rachel & Anne (class Yes).

k = 3
John's Class = YES

# data[].attributes.body
given k = 3 ,so I need to find the 3 nearest  neighbors from john,the dismensioin of instance is 3 so I need to respectively calculate the distance via the three attributes.Then find the 3 neighbors determine the class of John by the most comon class of these three neighbors.
classfication = yes

# data[].attributes.body
cassification =yes
k=3

# data[].attributes.body
k = 3
YES - Executive
George - No
Rachel - Yes
Anne - Yes

# data[].attributes.body
K = 3
Nearest Neighbour
The shortest Fuction
1 Rachel Yes
2 George No
3 Anne Yes
So John is Exercutive.