subject

. Python Voter Registration Application Code (python code) . Word or PDF file containing your test and pylint results
Python Applications for Lab1:
This lab consists of two parts. The first exercise produces a voter registration application asking the user a few simple questions followed by a confirmation of registration, provided the user is eligible. The second part documents your testing and pylint analysis results.
1. Using your Python programming environment, write a Python application that supports voter registration. The application will launch and run from the command line prompt. The application will prompt the user for their first name, last name, age, country of citizenship, state of residence and zipcode. To be a valid registration all fields must be entered. If they are at least 18 years old and a U. S citizen, they can move forward and be prompted for the remaining questions and register to vote. If not, they should not be presented with the additional questions. There should be some error checking logic on the input statements to make sure the age numbers entered seem reasonable (e. g. a person is probably not > 120 years) and states should be 2 letters representing only valid U. S. States. The application should prompt the user for the needed questions to complete the registration and re-prompt when data is invalid giving the user the opportunity to retry. The output should summarize the input data and congratulate the user if they are eligible to vote and entered all of the data. The user should be given options to exit the program at any time to cancel the registration process.
The following is a possible application interface. Other application interfaces are possible as well.

Welcome to the Python Voter Registration Application.
Do you want to continue with Voter Registration?
Yes.
What is your first name?
Sally
Do you want to continue with the voter Registration?
What is your last name?
Smith
Do you want to continue with the voter Registration?
Yes
What is your age?
49
Do you want to continue with the voter Registration?
Yes
Are you a U. S. Citizen?
Yes
Do you want to continue with the voter Registration?
Yes
What state do you live?
MD
Do you want to continue with the voter Registration?
Yes
What is your zipcode?
21012
Thanks for registering to vote. Here is the information we received:
Name (first last): Sally Smith
Age: 49
U. S. Citizen: Yes
State: MD
Zipcode: 21012
Thanks for trying the Voter Registration Application. Your voter
registration card should be shipped within 3 weeks.

Hints:
1. Be sure to add logic to test for continuing the registration process.
2. Validate data is valid on entry (e. g. all fields have input data, age seems correct, states seem correct).
3. Test with many combinations. For example, what happens if you enter invalid data? Exit the application at any point, or aren't 18 years old?
4. Use comments to document your code.
5. Use pylint to verify the code style - the goal is a 10!
2. Document your test results for each application within your programming environment. You should also include and discuss your pylint results for each application. The test document should include a test table that includes the input values, the expected results and the actual results. A screen capture should be included that shows the actual test results of running each test case found in the test table. Be sure to include multiple test cases to provide full coverage for all code. For example, you should demonstrate each set of logic in the code works as expected and every statement in the code is reached through the test cases.
A possible test table may look like this:
Test Input Expected Output Actual Output Pass?
Case
1a 1,2,3,4,5,6,7,8,9,10 Sum = 54, Sum = 54, Yes
Range = 9 Range = 9
1b 2,10,1,11,11,32,42,21,32,23 Sum = 183, Sum = 183, Yes
Range = 41 Range = 41

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
You know the right answer?
. Python Voter Registration Application Code (python code) . Word or PDF file containing your test...
Questions
question
Mathematics, 21.10.2020 14:01
question
French, 21.10.2020 14:01
question
French, 21.10.2020 14:01
question
French, 21.10.2020 14:01
question
French, 21.10.2020 14:01
Questions on the website: 13722367