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?
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education