### Design for Program 2, 115 Spring 01

There will have to be four counters, one for each of the three parties and one for the invalid votes. The data is being input with a trailer to end the data.

1. initialize counters
2. prompt the user for data

4. while the character is not the trailer
5. 	increment the appropriate counter and report an invalid vote
6.	prompt the user for data

8. calculate the percentages
9. report the counts and percentages

5.1	if the character is a D or d
increment the democrat counter
else if the character is a R or r
increment the republican counter
else if the character is an I or i
increment the independent counter
else
increment the invalid counter
report the invalid vote

5.1.1   if (character == 'D' || character == 'd')
democrats++;
else if (character == 'R' || character == 'r')
republicans++;
and so on
8.1	to find the percentages,
find the total of all the party counters
if the total of all the party counters is bigger than zero
divide the democrat count by the total - floating point
divide the republican count by the total - floating point
divide the independent count by the total - floating point
otherwise
the percentages are all zero

9.1  use the output functions to set the precision to 2 decimal places
and to show a decimal point

9.2  output the total of the party counters as "valid votes"
9.3  output the invalid counter as "invalid entries"
9.4  output labels and the percentages * 100 with percent signs after them