Starting from:

$30

Assignment 4 voting program

CS 0401 
Snapshots demonstrating the overall Assignment 4 voting program.
Note that the individual component functionalities are demonstrated within the other
snapshot files (TestVoter.txt, TestLogin.htm, TestBallot.htm). These snapshots simply show
how all of those components can be put together into a cohesive program. As with the
LoginPanel and BallotPanel classes, your main program (Assig4) does not have to look
exactly like this.
Note also that given the required functionalities of LoginPanel and BallotPanel and given the
two provided test files (TestLoginPanel.java and TestBallotPanel.java), putting things
together for this main program should not be too much work. The main work for this project
is writing the Voter, LoginPanel and (especially) BallotPanel classes.
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.
http://people.cs.pitt.edu/~ramirez/cs401/assigs/assig4/TestAssig4.htmGo FEB MAR APR
26
2017 2018 2019
6 captures
� ⍰❎
f �
19 Nov 2017 - 26 Mar 2018 ▾ About this capture
https://web.archive.org/web/20180326055205/http://people.cs.pi...
1 of 4 10/30/19, 5:06 PM
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.
Go FEB MAR APR
26
2017 2018 2019
6 captures
� ⍰❎
f �
19 Nov 2017 - 26 Mar 2018 ▾ About this capture
https://web.archive.org/web/20180326055205/http://people.cs.pi...
2 of 4 10/30/19, 5:06 PM
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.
Go FEB MAR APR
26
2017 2018 2019
6 captures
� ⍰❎
f �
19 Nov 2017 - 26 Mar 2018 ▾ About this capture
https://web.archive.org/web/20180326055205/http://people.cs.pi...
3 of 4 10/30/19, 5:06 PM
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.
Go FEB MAR APR
26
2017 2018 2019
6 captures
� ⍰❎
f �
19 Nov 2017 - 26 Mar 2018 ▾ About this capture
https://web.archive.org/web/20180326055205/http://people.cs.pi...
4 of 4 10/30/19, 5:06 PM

More products