Module 6 - Lab - Election

 Objective

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

 Requirements

Requirement

Notes

Requirement

Notes

Example output

You can decide what functions are needed to complete this assignment.

 

Deliverable

Upload the following:

  1. Full source code (.cpp file or .txt file)

  2. Screenshot of the Console with the code executing

COSC-1336 / ITSE-1302 Computer Science - Author: Dr. Kevin Roark