Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
A4: Asmt#4: Work survey data analysis

You are not logged in. Go to Login page.
You need to login before you can view more content.
(content omitted that requires login)

4. Work: survey data analysis
This programming exercise looks at work survey data analysis. There are many types of such surveys in comparing groups.

5. Requirements
Write a Python program to do the following.

Write a Python program to input the data and output the results as shown in the examples. If the requirements are unclear in any way, use any provided input and output to resolve the discrepancy.

6. Coding notes
The following coding examples and/or notes may be of use for this requirement.

Note that there are many ways to do the requirements in Python.

Here are some restrictions. The output for one or more inputs is not provided. You should insure that your program creates the proper output for those inputs.

Make all necessary assumptions. Make no unnecessary assumptions.

In addition to specific coding examples, you should be familiar with all concepts covered to this point in the course.

7. Starter program
You are provided with the following starter program in file worksurvey.py.

Do not remove any comment that starts with two hash signs.

Here is the Python code.

You are to fill in the missing parts of the program according to the work requirements (see above).

In the comments at the top, you are to fill in the author (your name), help received (person and type of help), and pseudo-code parts which are not in the solution (usually provided, but you need to add them). Remove the parentheses too.

8. Possible solution
Begin solution

Here is a possible solution to the above problem. Note: Once a solution is provided, or the day before the next class, further submissions for this work receive no credit.

End solution

9. Examples of input and output
Here are some examples of input and output for the above program code.

Here is an example input from file input1.txt.

For the above example input, here is the expected output.

Here is an example input from file input2.txt.

For the above example input, here is the expected output.

Here is an example input from file input3.txt.

For the above example input, here is the expected output.


The output for this input is not provided. Insure your program works for this input.


10. Scoring rubric

CS 496 - A4 : Asmt#4: Work survey data analysis Your grade: _ / 30    [LATE] Late or redo penalty: _ / -30    [SUBMIT] Not submitted properly: _ / -30    [RUN] Does not compile, run-time crash, etc.: _ / -30    [ETHICS] Ethical issues: _ / -30    [HEADER] Header comments not done as required: _ / -15    [STYLE] Inconsistant style or indentation: _ / -15    [CODE] Code guidelines ignored: _ / -30    [XCODE] Code used not yet covered: _ / -15    [REMOVED] Triple slash comments removed: _ / -15    [ADDED] Code added outside of marked areas: _ / -15    [OUTPUT] Functional requirements met: _ / 30    [CREDIT] Extra credit: _ / +6 Comments:


11. End of page