Instructions Create an application that allows the user to input the last names of five candidates in a local election, as well as the amount of votes each candidate obtained. The programme should then output each candidate's name (Candidate), the number of votes received (Votes Received), and the candidate's proportion of the total votes received ( percent of Total Votes). Your application should also output the election winner. Your software must include at least the following features: a function for calculating the total number of votes cast   a function that returns the election winner This must be done in C++.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
Instructions



Create an application that allows the user to input the last names of five candidates in a local election, as well as the amount of votes each candidate obtained.
The programme should then output each candidate's name (Candidate), the number of votes received (Votes Received), and the candidate's proportion of the total votes received ( percent of Total Votes).
Your application should also output the election winner.



Your software must include at least the following features:



a function for calculating the total number of votes cast

 

a function that returns the election winner



This must be done in C++.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning