Maybe Dominion has a few openings.
First assignment find the bad code:
If BidenVotes < TrumpVotes Then
TempVotes = BidenVotes
BidenVotes = TrumpVotes
TrumpVotes = TempVotes
end if
If bVoteTrump Then
TrumpVotes = TrumpVotes + 0.63
End If
If bVoteBiden Then
BidenVotes = BidenVotes + 1.37
End If
... and replace with the following:
If bVoteTrump Then
TrumpVotes = TrumpVotes + 1
End If
If bVoteBiden Then
BidenVotes = BidenVotes + 1
End If
Edit - forgot about the formatting on this site - C would've been worse
Maybe Dominion has a few openings.
First assignment find the bad code:
If BidenVotes < TrumpVotes Then
TempVotes = BidenVotes
BidenVotes = TrumpVotes
TrumpVotes = TempVotes
end if
If bVoteTrump Then
TrumpVotes = TrumpVotes + 0.63
End If
If bVoteBiden Then
BidenVotes = BidenVotes + 1.37
End If
... and replace with the following:
If bVoteTrump Then
TrumpVotes = TrumpVotes + 1
End If
If bVoteBiden Then
BidenVotes = BidenVotes + 1
End If
Edit - forgot about the formatting on this site - C would've been worse
Maybe Dominion has a few openings.
First assignment find the bad code:
If TrumpVotes > BidenVotes Then TempVotes = BidenVotes BidenVotes = TrumpVotes TrumpVotes = TempVotes end if
If bVoteTrump Then TrumpVotes = TrumpVotes + .63 End If
If bVoteBiden Then BidenVotes = BidenVotes + 1.37 End If
... and replace with the following:
If bVoteTrump Then TrumpVotes = TrumpVotes + 1 End If
If bVoteBiden Then BidenVotes = BidenVotes + 1 End If