Win / GreatAwakening
GreatAwakening
Sign In
DEFAULT COMMUNITIES All General AskWin Funny Technology Animals Sports Gaming DIY Health Positive Privacy
Reason: Formatting

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

3 years ago
1 score
Reason: Formatting

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

3 years ago
1 score
Reason: Original

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

3 years ago
1 score