CIS 261 Data Structures Programming

Program Requirements: Election Results

Write a Java program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate's name, the votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election.

Sample Output

  Candidate   Votes Received  % of Total Votes
  ---------   --------------  ----------------
  Johnson        5000           25.91
  Miller         4000           20.72
  Delmen         6000           31.09
  Robinson       2500           12.95
  Ambrose        1800            9.33

  Total         19300

  The Winner of the Election is Delmen.

Use object oriented design to divide the problem into appropriate classes and methods. 

 Construct a test set for the program.

Design: (25 points)

Problem Description
Algorithm
Data Structures (show the Java code for how this data will be stored)
Decomposition - UML class diagram(s)
Test Set Design

Final Program:

Final version of Design Documentation from above (5 pts), PLUS:
Source Code (35 pts)
Sample Output (35 pts)