Software Dev. & Problem Solving II Special Methods & Visualization OFFICE DEMOCRATIC REPUBLICAN CONSERVATIVE GREEN WORKING...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
What impact does this have on the statement of cash flows using the indirect method? a.) If the balance of a current liability decreases during the accounting period, then that amount will be...
-
The notes to the Mann Ltd. financial statements reported the following data on December 31, Year 1 (end of the fiscal year): Mann Ltd. amortizes bond discount by the effective-interest method and...
-
Suppose there is a flood that damages the iceberg lettuce crop. At the same time, there is a 20% off sale for spinach, a substitute for iceberg lettuce. What will happen to the equilibrium price and...
-
Are there any cases you can find where a supplemental pleading was allowed because new facts have been alleged? What were the new facts?
-
Identify the five components that comprise pension expense. Briefly explain the nature of each component.
-
If policymakers' goal is to raise revenue with the least excess burden possible, while avoiding a tax that is considered inequitable such as the lump-sum tax, then they should: a.set a high tax rate...
-
Calculate the value of CP at 298 K and 1 atm pressure predicted for CH4(g) and C2H4(g) by the classical equipartition theorem. Compare the predicted results with the experimental results and...
-
ii) Consider the U.S.A "small country". Explain the equilibrium of how an import tariff affects different groups (a. consumer, b. producer, c. government) of the metal market inside the small...
-
Wisconsin Energy Company determines it has an ARO of $ 1 , 0 0 0 , 0 0 0 related to underground gas tanks for a gas station that it purchased on January 4 , 2 0 2 5 . The tanks have a useful life of...
-
Equation f(x)= 4x + 13x+10 Solve using quadractic formula, start to gimplify and in the end it looks like Q= R S= x= JR S
-
Discuss the resurgence of the epistolary form in contemporary literature. How has its use evolved from traditional novels and what unique narrative advantages does it offer ?
-
How does affiliate marketing at Amazon work? How Amazon's business partners get paid? Who can sign up for this service? Make research on the Internet, and check other affiliate marketing programs....
-
The 5th Amendment says the government can't take your property without paying for it. The 5th Amendment to the US Constitution shows the influence of Adam Smith on the US system of government. So g...
-
Consumers who are high in the need for cognition are likely to ________. 1 form positive attitudes in response to ads that are logical and rational 2 form positive attitudes in response to ads that...
-
United Business Forms capital structure is as follows: Debt ............................................ 35% Preferred stock ........................... 15 Common equity .......................... 50...
-
Steve Drake sells a rental house on January 1, 2012, and receives $130,000 cash and a note for $55,000 at 10 percent interest. The purchaser also assumes the mortgage on the property of $45,000....
-
How are qualified dividends taxed in 2012? Please give the two rates of tax which apply to qualified dividends, and specify when each of these rates applies._________________________...
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
Evaluate Mephisto Products current approach to sales. Why has it been relatively successful to date?
-
What problems can you anticipate if Tony Bullins goes ahead and changes the sales team and selling philosophy?
-
How does the role of selling tend to differ between: (a) industrial products (B2B)? (b) consumer products (B2C)?
Study smarter with the SolutionInn App