Answer:
The literary device used in the sentence is personification.
Step-by-step explanation:
In the sentence above, the washing machine has been assigned human traits. This literary device is called personification. Personification is a figure of speech in which a thing, an idea or animal, is given human attributes. In this case, the writer makes it seem as if the washing machine had the ability to dance, just as people do. However, this is impossible because the device has no volition.