Question: Utilizing the class diagram above, implement the voting system. You will need a main method to allow a voter to register and vote (you need
Utilizing the class diagram above, implement the voting system. 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.
Just need help with the main method using java
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):Boolearn +successfullyRegistered):String +voterlD:String BallotCreation Candidate 11...1-candidateName:String ballotName:String -candidates: candidates +displayBallot(String ballotName, Candidate candidates []D:void +submitBallot0:String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
