Intro to Computer Science
PA03
Code due to the Program Submission System on by 9/25 at 11:59pm
Introduction
This week we have been working with for and while loops. Let's see if you understand this idea.
Notes and requirements:
Create a program named money.py
Create a program named password.py You've probably been asked to produce passwords that pass certain rules. Write a program that asks for a password, one character at a time, to figure out if it is strong enough.
In this problem you will write code using a while loop that will:
ok | 8 or more characters, has at least 1 uppercase letter, has at least 1 lowercase letter, has at least 1 number |
not ok | has less than 8 characters or is missing at least 1 uppercase letter, 1 lowercase letter, or 1 number |
if char>="a" and char<="z": #checks if char is a lowercase letter
Write a program called disarm.py
You are cleaning up in the Hall of Justice the morning after a huge Super Friends bash when a call comes in....
"This is the League of Doom!" "We are going to blow up Aquaman with one billion pounds of TNT, if you don't give us a bazillion dollars!!!""..." "..." "..." "We have Batman, too" Now something has to be done, but there is no one around. It is all up to you. Just then a batarang crashes through the window with a message from Batman:
The code to defuse the bomb is taking all the numbers of the geometric sequence
of 2 under a certain number N and multiplying them together.
Please submit all three programs to the Program Submission System by the due date and time.