Programming Computer Science Worksheet

CSS 220 Module 1 HomeworkModule 1 Submission:
– This document with answers to given questions
– Two python programs created for Part 2 a. and b.
Download the following Python programs:
allPermutations.py
allPermutationsSetLength.py
allCombinationsSetLength.py
allCombinationsUnsorted.py
allCombinationsWithRepition.py
Before executing each one, predict what the output will be.
Part 1: For each one, record your predicted outcome and the observed outcome.
Python Program
allPermutations.py
Predicted
Observed
allPermutationsSetLength.py
allCombinationsSetLength.py
allCombinationsUnsorted.py
allCombinationsWithRepition.py
Part 2: You are creating a password generator that will create all possible passwords meeting a
certain criterion. To do this you will edit the Python program allPermutationsSetLength.py to
print out the total number of passwords as a number only (not all actual passwords because it
will take a huge amount of time to run the program!) for the following criteria:
a. Password must be 8 characters long. Can be comprised of any arrangement of numbers and
lowercase letters. How many potential passwords can be created? Explain/show your work.
Hint: Check out the factorial function in Python.
b. Password must be 8 characters long. Can be comprised of any arrangement of numbers,
lowercase letters, and the following four special characters (!, $, *, _). How many potential
passwords can be created? Explain/show your work. Hint: Check out the factorial function in
Python.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Order a unique copy of this paper

600 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
Top Academic Writers Ready to Help
with Your Research Proposal

Order your essay today and save 25% with the discount code GREEN