This is more or less how it works in my state. The voting machines are electronic but before you cast your ballot it physically prints it onto a paper ballot which it displays to you in a window, so you can verify that ballot says the same thing as what you put on the screen. The electronically recorded vote goes who=knows-where, if it goes anywhere at all, but the printed paper ballot goes into a strongbox underneath the machine.
This is more or less how it works in my state. The voting machines are electronic but before you cast your ballot it physically prints it onto a paper ballot which it displays to you in a window, so you can verify that ballot says the same thing as what you put on the screen. The electronically recorded vote goes who=knows-where, if it goes anywhere at all, but the printed paper ballot goes into a strongbox underneath the machine.