second midterm exam for embedded systems 8170934