Daniel B. answered 10/09/22
A retired computer professional to teach math, physics
The direction of the force of friction involves the following:
r = 10 cm -- the radius of rotation
α = 0.783 rad/sec/sec -- the angular acceleration
ω -- angular velocity, which is changing.
As ω keeps changing, so does the force of friction:
When ω=0, then so is the force of friction;
as ω keeps increasing, so is the force of friction to the point
when the surface is not able to provide the friction and the coing flies away.
The coin is subject to two accelerations:
centripetal acceleration of magnitude ω²r, which is direction to the center, and
tangential acceleration αr, which is perpendicular to the ruler.
Their vector sum will have angle φ from the ruler.
If you draw a picture then you will see that
tan(φ) = αr/ω²r = α/ω²
Under the unstated assumtion that friction is the only force acting on the coin,
the force of friction must be responsible for that acceleration, and so
has the same direction.