Question: How to do this in java vote txt looks like this cand txt looks like this Design and implement a program processes voting data of

How to do this in java

How to do this in java vote txt looks like this cand

txt looks like this Design and implement a program processes voting data

vote txt looks like this

of presidential election for the country of RichlandCollege where the said cuntry

cand txt looks like this

consists of 4 states. At this time, there are 6 candidates are

Design and implement a program processes voting data of presidential election for the country of RichlandCollege where the said cuntry consists of 4 states. At this time, there are 6 candidates are running for the position as seen in the candData.txt text file. The results of the votes are sent to you for processing, see sample in voteData.txt. It lists each candidate's name and the votes they received by states. You should have a nicely formatted output of the election results with the winner's name printed. voteData.txt Your program driver should generate a randomly generated voteData based on the given candidate names, random state selection (1-4), and random votes (0- 50) per state. You should generate 10,000 1,000,000 entries in the voteData.txt before processing the data. In your design(UML/Flowchart, UML/pseudo code) have a BigO analysis for your algorithms (where it applies) and justify your selection of algorithms based on speed and storage characteristics Candidate This class implements a candidate as an object. Methods (besides standard methods, implement the specific methods especially their post condition requirements) public void method_name_chsen_by_you(int state, int votes) Method to set the votes of a candidate for a particular state. Postcondition: The votes specified by the parameter votes are assigned to the state specified by the parameter state

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!