To find the probability that a randomly chosen person has long hair, we need to find the total number of people with long hair and divide it by the total number of people in the class.
Let's find the total number of people with long hair:
- Number of men with long hair = 4
- Number of women with long hair = 24 - 6 = 18
Total number of people with long hair = 4 (men) + 18 (women) = 22
Next, let's find the total number of people in the class:
Total number of men = 16
Total number of women = 24
Total number of people in the class = 16 (men) + 24 (women) = 40
Now, let's find the probability that a person has long hair:
P(\text{long hair}) = \dfrac{\text{Total number of people with long hair}}{\text{Total number of people in the class}}
P(\text{long hair})=\dfrac{22}{40}=\frac{11}{20}
P(\text{long hair}) = 0.55
Therefore, the probability that a randomly chosen person has long hair is \boxed{0.55} .