Starting from:
$30

$24

Project 04 Solution

On the command line this program will be invoked:




java Assig4 voters.txt ballots.txt




As mentioned in the previous snapshot files, the input files can actually be any correctly formatted voters and ballots files. Assume for this program the voters.txt file will be the same as it was initially for the TestLoginPanel.java program and assume the ballots.txt file is as it was in the TestBallotPanel.java program.








































Initially the program welcomes a user and asks him / her to login to the site.























































1 of 4 10/30/19, 5:06 PM
https://web.archive.org/web/20180326055205/http://people.cs.pi...






























FEB
MAR
APR





















Go






















26




f
6 captures






























2017
2018
2019
▾ About this capture
19 Nov 2017 - 26 Mar 2018


















































After clicking on the "Click to Login" button the user now sees at the bottom of the window the LoginPanel. This is the same LoginPanel demonstrated in TestLogin.htm. See that document for details on how the LoginPanel should function. In this case the user has entered 1234 and is about to submit.








































Now the Voter has been found and returned by the LoginPanel and the main program is showing a button to allow the Voter to vote.



























































































2 of 4 10/30/19, 5:06 PM
https://web.archive.org/web/20180326055205/http://people.cs.pi...


































FEB
MAR
APR























Go


6 captures




26




f










2017
2018
2019
▾ About this capture


19 Nov 2017 - 26 Mar 2018

















































The user now sees the BallotPanel and can vote. Note that the functionality of BallotPanel is the same as demonstrated in TestBallot.htm. See that document for details on how the BallotPanel should function.










































































































3 of 4 10/30/19, 5:06 PM
https://web.archive.org/web/20180326055205/http://people.cs.pi...




































APR























FEB
MAR


















Go






















26




f
6 captures






























2017
2018
2019
▾ About this capture
19 Nov 2017 - 26 Mar 2018














































User makes some selections, clicks on "Cast Your Vote" and confirms.




















































Once the Voter has voted, the voters.txt file should be updated to indicate this fact. This should be done through a call to the Voter.saveVoter() method. For details on this see the TestVoter.java program.








































Main program thanks user for voting and then goes back to initial window for the next user.
































































4 of 4 10/30/19, 5:06 PM

More products