Before any election where a mechanical voting system is to be used, the county clerk shall prepare or cause to be prepared a computer program on cards, tape or other material suitable for use with the computer or counting device to be employed for counting the votes cast. The program must cause the computer or counting device to operate in the following manner:
All lawful votes cast by each voter must be counted.
All unlawful votes, including, but not limited to, overvotes or, in a primary election, votes cast for a candidate of a major political party other than the party, if any, of the registration of the voter must not be counted.
If the election is:
A primary election held in an even-numbered year; or
A general election,Ê the total votes, other than absentee votes and votes in a mailing precinct, must be accumulated by precinct.
The computer or counting device must halt or indicate by appropriate signal if a ballot is encountered which lacks a code identifying the precinct in which it was voted and, in a primary election, identifying the major political party of the voter.
The program must be prepared under the supervision of the accuracy certification board appointed pursuant to the provisions of NRS 293B.140.
The county clerk shall take such measures as he or she deems necessary to protect the program from being altered or damaged.