Python Programming only please no java Create a PollMachine class that can be used for a simple poll for users.  Your program must perform the following actions:   Method to clear the machine state Method to agree/Disagree to 3 options of your choice for example (I enjoy being a student Agree(A)/Disagree(D)) Get tallies of all agrees and disagrees for each answer Keep asking for users to enter answers until the user ends the program. Print the following to the console: Display the results after the poll has ended.  Make sure to use a try-except block and include the finally block.     Describe the data you print. Do not just print numbers to the screen explain what each number represents.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question

Python Programming only please no java

Create a PollMachine class that can be used for a simple poll for users. 

Your program must perform the following actions:

 

  • Method to clear the machine state
  • Method to agree/Disagree to 3 options of your choice for example (I enjoy being a student Agree(A)/Disagree(D))
  • Get tallies of all agrees and disagrees for each answer

Keep asking for users to enter answers until the user ends the program.

Print the following to the console:

  • Display the results after the poll has ended. 

  • Make sure to use a try-except block and include the finally block.

 

 

Describe the data you print. Do not just print numbers to the screen explain what each number represents.

Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT