Question: Software Dev. & Problem Solving II Special Methods & Visualization OFFICE DEMOCRATIC REPUBLICAN CONSERVATIVE GREEN WORKING FAMILIES INDEPENDENCE A B DO E F& GOVERNOR

Software Dev. & Problem Solving II Special Methods & Visualization OFFICE DEMOCRATIC REPUBLICAN CONSERVATIVE GREEN WORKING FAMILIES INDEPENDENCE A B DO E F& GOVERNOR AND LIEUTENANT GOVERNOR COMPTROLLER (Vote ONCE) (Vote for any ONE DEMOCRATIC Andrew M Cuomo Kathy C Hochul REPUBLICAN Marc Molinaro Julie Killian CONSERVATIVE Marc Molinaro Julie Killian GREEN Howie Hawkins Jia Lee WORKING FAMILIES Andrew M Cuomo Kathy C Hochul INDEPENDENCE Andrew M Cuomo Kathy C Hochul DEMOCRATIC 34\ Thomas P DiNapoli REPUBLICAN Jonathan Trichter CONSERVATIVE Jonathan Trichter GREEN Mark Dunlea WORKING FAMILIES 3 Thomas P DiNapoli DEPENDENCE *! Thomas P DiNapoli ATTORNEY GENERAL Vote for any ONE) DEMOCRATIC 4A Letitia A James REPUBLICAN Keith Wofford CONSERNATIVE Keith Wofford GREEN Michael Sussman WORKING FALES 46 Letitia A James INDEPENDENCE # Letitia A James Assignment 2.2 UNITED STATES SENATOR (Vote for any ONE) SA DEMOCRATIC Kirsten E Gillibrand REPUBLICAN Chele Chiavacci Farley CONSERVATIVE Chele Chiavacci Farley WORKING FAMILIES Kirsten E Gillibrand NDEPENDENCE GCIS-124 C Kirsten E Gillibrand STATE SUPREME 7th Judici (Vote for any TWO DEMOCRATIC Christopher S Ciaccio REPUBLICAN 23 Ann Marie Taddeo CONSERVATIVE oc Ann Marie Taddeo WORKING FAMILIES 20 Christopher S Ciaccio INDEPENDENCE w Ann Marie Taddeo Goals of the Assignment The goal of this assignment is to practice creating and using Java classes and enumerations. Please read this document in its entirety before seeking help from the course staff. Activities 1. Use the following problem statement to guide you through software development: The local municipality would like to create a system for managing candidates for the next local election. Each candidate will be identified by their name, political affiliation, and the position they are running for. In this election cycle, the only positions being offered are mayor, sheriff, judge, and one assembly member. Political parties must be registered with the city and only the following have registered in time for the election: Republican, Democrat, Working Family, Libertarian, and Independent. Candidates can be endorsed by multiple parties. If two candidates, in the system, have the same name and are running for the same position, they need to be considered the same candidate for counting purposes. Additionally, each candidate, position, and party will need to be printable in an easy to read format. 2. Note: In order to keep the scope of this problem reasonable, candidates won't be used directly by a final program (for example, a program that prints ballots). Instead you should use JUnit 5 to test all of the functionality you create for it. This means there is no need for a main method unless you want to use it for your own debugging purposes. 3. It is strongly recommended that you start by doing a noun verb analysis. When deciding on your classes, keep in mind that objects with a set and limited number of possibilities may be better represented as enumerations rather than a traditional class. 4. Create any classes and/or enumerations that you may need to implement the problem statement. a. Remember to use proper encapsulation. b. Implement any required methods. c. Write tests for each method, including one test for each likely variation of the method. (I.E. If the method has a branch statement in it, write a test for each path that is likely to occur during normal use.) Submission Instructions You must ensure that your solution to this assignment is pushed to GitHub before the start of the next lecture period. See the course syllabus for the rubric that will be used to evaluate your submission.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
