Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a module named h06_01.py from the directory hw * Record your name, class number, and date of creation. * Create an empty dictionary to

Create a module named h06_01.py from the directory hw

* Record your name, class number, and date of creation.

* Create an empty dictionary to store the poll results

* Using a while loop to add users input of their name, and monthly income to the dictionary data structure.

* Stop the while loop if user input is No (n)

* Print out how many participants in the poll, the total and average monthly income for these participants

Hints:

1. The average monthly income=total incomes / number of people

2. You may create variables to store participant numbers and total monthly income before the while loop

Paste the code and captured screen here:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago