Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program called ElectionStatistics that accepts as user input the names of three political parties and the number of votes each received in the
Write a program called ElectionStatistics that accepts as user input the names of three political parties and the number of votes each received in the last mayoral election. Display the percentage of the vote each party received.
An example of the program is shown below:
Enter name for first party Surprise party
Enter votes received
Enter name for second party Pool party
Enter votes received
Enter name for third party House party
Enter votes received
The Surprise party got percent of the vote
The Pool party got percent of the vote
The House party got percent of the vote
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started