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?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education