Question: Utilizing the class diagram above, implement the voting system using JAVA. You will need a main method to allow a voter to register and vote

 Utilizing the class diagram above, implement the voting system using JAVA.

Utilizing the class diagram above, implement the voting system using JAVA. You will need a main method to allow a voter to register and vote (you need to take in user input). You need to assume getters, setters, constructors, and toString methods; and you need to take in the user input and validate it as well. Comment the code well and submit screenshot testing within your PDF. Hint: you can research regular expressions for the validation functions.

VotePersonalldentification voterLastName:String voterFirstName:String -voterSIN: Integer voterAddress:String -voterProvince:String -voterCity:String voterPostalCode:String +validateLastName(voterLastName):Boolean +validatefirstName)voterLastName):Boolean +validateSIN(voterSIN):Boolean +validatePostalCode(voterPostalCode):Boolean +successfullyRegistered0 String +voterID:String BallotCreation Candidate 1. -candidateName:String -ballotName:String candidates: candidates ] -candidateBiography:String +displayBallot(String ballotName, Candidate candidates []):void +submitBallot0:String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!