Part 1: Write a complete program that allows the user to enter the last names of 5 candidates in Kean University's student government election and the votes received by each candidate. The program should then output each candidate's name, the votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election. Use the following data for your output: Candidate Johnson Votes Received % of Total Votes 5000 25.91 Miller 4000 20.72 Duffy Robinson 6000 31.09 2500 12.95 Ashtony Total The Winner of the KU Election is Duffy. 1800 9.33 19300 Part 2: Cognitive Style Reflection: Answer the following questions regarding the program you wrote for this lab and indicate who you best match with given the descriptions for the people named Abi, Tim and Pat. Also, explain why you identify with that person. 1. If you did not immediately generate the final correct output. Abi: Discontinue making any further changes in coding the program and e-mail the professor. Tim: Tinker around with the coding of the methods, and keep trying alternate features Pat: Might be motivated to e-mail the professor after some tinkering with the methods Who do you identify with? Why do you identify with either Abi, Tim, or Pat? 2. The directions describing this lab assignment were directed more toward whom? Abi: Looking for step-by-step directions Tim: Not looking for steps to read, but wants to jump right into the coding of the methods and be selective with the loops used Pat: Looks to know what is going on before investing effort and avoiding unfamiliar topics Who do you identify with? Why do you identify with Abi, Tim, or Pat?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
icon
Related questions
Question
Part 1: Write a complete program that allows the user to enter the last names of 5 candidates
in Kean University's student government election and the votes received by each candidate.
The program should then output each candidate's name, the votes received by that candidate,
and the percentage of the total votes received by the candidate. Your program should also
output the winner of the election. Use the following data for your output:
Candidate
Votes Received
% of Total Votes
Johnson
5000
25.91
Miller
4000
20.72
Duffy
6000
31.09
Robinson
2500
12.95
Ashtony
1800
9.33
Total
19300
The Winner of the KU Election is Duffy.
Part 2: Cognitive Style Reflection: Answer the following questions regarding the program
you wrote for this lab and indicate who you best match with given the descriptions for the
people named Abi, Tim and Pat. Also, explain why you identify with that person.
1. If you did not immediately generate the final correct output.
Abi: Discontinue making any further changes in coding the program and e-mail the professor.
Tim: Tinker around with the coding of the methods, and keep trying alternate features
Pat: Might be motivated to e-mail the professor after some tinkering with the methods
Who do you identify with?
Why do you identify with either Abi, Tim, or Pat?
2. The directions describing this lab assignment were directed more toward whom?
Abi: Looking for step-by-step directions
Tim: Not looking for steps to read, but wants to jump right into the coding of the methods
and be selective with the loops used
Pat: Looks to know what is going on before investing effort and avoiding unfamiliar topics
Who do you identify with?
Why do you identify with Abi, Tim, or Pat?
Transcribed Image Text:Part 1: Write a complete program that allows the user to enter the last names of 5 candidates in Kean University's student government election and the votes received by each candidate. The program should then output each candidate's name, the votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election. Use the following data for your output: Candidate Votes Received % of Total Votes Johnson 5000 25.91 Miller 4000 20.72 Duffy 6000 31.09 Robinson 2500 12.95 Ashtony 1800 9.33 Total 19300 The Winner of the KU Election is Duffy. Part 2: Cognitive Style Reflection: Answer the following questions regarding the program you wrote for this lab and indicate who you best match with given the descriptions for the people named Abi, Tim and Pat. Also, explain why you identify with that person. 1. If you did not immediately generate the final correct output. Abi: Discontinue making any further changes in coding the program and e-mail the professor. Tim: Tinker around with the coding of the methods, and keep trying alternate features Pat: Might be motivated to e-mail the professor after some tinkering with the methods Who do you identify with? Why do you identify with either Abi, Tim, or Pat? 2. The directions describing this lab assignment were directed more toward whom? Abi: Looking for step-by-step directions Tim: Not looking for steps to read, but wants to jump right into the coding of the methods and be selective with the loops used Pat: Looks to know what is going on before investing effort and avoiding unfamiliar topics Who do you identify with? Why do you identify with Abi, Tim, or Pat?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
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