Problem Statement:                 Design a program that will determine the winner in the last presidential election. The number of nominees shall be entered by the election officer. After which, the complete name (first name, middle initial and last name) and total number of votes received per candidate shall be encoded. After which a summary list is shown in the following format:   Candidate #        Last name, First name M.I.          Received Votes -              -                                              - -              -                                              - -              -                                              - -              -                                              - After which, display the 1st, 2nd and 3rd winner in the following format:                         1st last name    votes received                         2nd last name    votes received                         3rd last name    votes received   Before the program terminates, display your full name, Subject code and Account Number. JUST PUT RANDOM NAME I WILL CHANGE IT.   Requirements: The following programming structures must be evident in your source code. Conditional structure Looping structure Array

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 6PP
icon
Related questions
Question

C++ PROGRAM

Problem Statement:

                Design a program that will determine the winner in the last presidential election. The number of nominees shall be entered by the election officer. After which, the complete name (first name, middle initial and last name) and total number of votes received per candidate shall be encoded. After which a summary list is shown in the following format:

 

Candidate #        Last name, First name M.I.          Received Votes

  • -              -                                              -
  • -              -                                              -
  • -              -                                              -
  • -              -                                              -

After which, display the 1st, 2nd and 3rd winner in the following format:

                        1st last name    votes received

                        2nd last name    votes received

                        3rd last name    votes received

 

Before the program terminates, display your full name, Subject code and Account Number. JUST PUT RANDOM NAME I WILL CHANGE IT.

 

Requirements:

The following programming structures must be evident in your source code.

  • Conditional structure
  • Looping structure
  • Array
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
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
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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