I am a computer science major and we are required to take two semesters of physics. First semester is based on mechanics and the second semester is focused on electricity and magnetism. I was wondering how these topics are used in computer science and in what specific area? I have tried looking on the internet about how electricity and magnetism is used in computer science but couldn't find anything. I found that mechanics is useful for video game development, but how is E&M used in computer science?