Case Study B - Final
Case Study B - Final
CC 102: Programming 1
* *
* * * *
* * * \ / * * *
* * * * # * * * *
* * * * # * * * *
* * * * * * * *
* * * * * *
* * * *
* *
4. Python program that prints all the numbers from 0 to 6
except 3, 16, 24, 35, 42, 56, 69, 71, 83 and 99.
Note : Use 'continue' statement.
5. Python program that iterates the integers from 1 to 50. For
multiples of three print "Pogi" instead of the number and for
multiples of five print "Sir". For numbers that are multiples
of three and five, print "PogiSir".
Sample Output :
1
2
Pogi
4
Sir
6. Python program to check the validity of passwords input by users.
Validation :
At least 1 letter between [a-z] and 1 letter between [A-Z].
ooooooooooooooooo
ooooooooooooooooo
ooooooooooooooooo
oooo
oooo
oooo
ooooooooooooooooo
ooooooooooooooooo
ooooooooooooooooo
oooo
oooo
oooo
ooooooooooooooooo
ooooooooooooooooo
ooooooooooooooooo
10. Write a Python program to display the astrological sign for a given
date of birth.
Expected Output:
Input birthday: 28
Input month of birth (e.g. march, july etc): august
Your Astrological sign is : virgo
CASE STUDY - 1
CODE:
OUTPUT:
CASE STUDY - 2
CODE:
OUTPUT:
CASE STUDY - 3
CODE:
OUTPUT:
CASE STUDY - 4
CODE:
OUTPUT:
CASE STUDY - 5
CODE:
OUTPUT:
CASE STUDY - 6
CODE:
OUTPUT:
CASE STUDY - 7
CODE:
OUTPUT:
CASE STUDY - 8
CODE:
OUTPUT:
CASE STUDY - 9
CODE:
OUTPUT:
CASE STUDY - 10
CODE:
OUTPUT: