Question: Java code connexus.com/extra/ThirdPartyProviders/FLVS/32959 AP CompScuv9 CA/module16/rtfmod16/16.02 Assignment Instructions Chinese I A: Listen a 00 coccc Assessment Instructions Instructions: For this assessment, you are going to

Java code

Java code connexus.com/extra/ThirdPartyProviders/FLVS/32959 AP CompScuv9 CA/module16/rtfmod16/16.02 Assignment Instructions Chinese I A: Listen

a 00 coccc Assessment Instructions Instructions: For this assessment, you are going

to create replacement methods. 1. Create a folder called Assessment in your

connexus.com/extra/ThirdPartyProviders/FLVS/32959 AP CompScuv9 CA/module16/rtfmod16/16.02 Assignment Instructions Chinese I A: Listen a 00 coccc Assessment Instructions Instructions: For this assessment, you are going to create replacement methods. 1. Create a folder called Assessment in your Unit 6 assessments folder. 2. Copy your TestCandidate.java to a new class TestCandidate3.java. 3. Modify your election array to add in the following people. Candidate Vote Mickey Jones Rebecca Morgan Kathleen Turner Tory Parker Ashton Davis 2000 8000 500 10000 4. Create the following methods for modify election results. Create a method that will find a particular candidate by name and change the name for that candidate. Call it replaceName (). Its arguments should include the array, a name to find, and the replacement name. b. Create a method that will find a particular candidate by name and change [he number of votes for that candidate. Call it replaceVotes (). Its arguments should include the array, a name to find, and the replacement votes Create a method that will find a particular candidate by name and replace both the name and number of votes for that candidate. Call it replaceCandidate) Its arguments should include the array, a name to find, the replacement name, and the replacement votes. Test your methods by changing Michael Duffy's name to John Elmos. Then change the number of votes for Mickey Jones to 2500. Finally replace Kathleen Turner's name and votes with John Kennedy and 8500 votes. You should call printResults () first and then after each change. You output should be similar to output shown below: Remember to turn on unlimited buffering in BlueJ so that you can see the results c. d. connexus.com/extra/ThirdPartyProviders/FLVS/32959 AP CompScuv9 CA/module16/rtfmod16/16.02 Assignment Instructions Chinese I A: Listen a 00 coccc Assessment Instructions Instructions: For this assessment, you are going to create replacement methods. 1. Create a folder called Assessment in your Unit 6 assessments folder. 2. Copy your TestCandidate.java to a new class TestCandidate3.java. 3. Modify your election array to add in the following people. Candidate Vote Mickey Jones Rebecca Morgan Kathleen Turner Tory Parker Ashton Davis 2000 8000 500 10000 4. Create the following methods for modify election results. Create a method that will find a particular candidate by name and change the name for that candidate. Call it replaceName (). Its arguments should include the array, a name to find, and the replacement name. b. Create a method that will find a particular candidate by name and change [he number of votes for that candidate. Call it replaceVotes (). Its arguments should include the array, a name to find, and the replacement votes Create a method that will find a particular candidate by name and replace both the name and number of votes for that candidate. Call it replaceCandidate) Its arguments should include the array, a name to find, the replacement name, and the replacement votes. Test your methods by changing Michael Duffy's name to John Elmos. Then change the number of votes for Mickey Jones to 2500. Finally replace Kathleen Turner's name and votes with John Kennedy and 8500 votes. You should call printResults () first and then after each change. You output should be similar to output shown below: Remember to turn on unlimited buffering in BlueJ so that you can see the results c. d

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!