Sleeping on the floor is good as it makes your back to rest on a flat rigid surface which helps in k…