Question
Exercise 1 Guess a number between 1 to 9 given by the user Exercise 2 Check the validity of password input by the user. Validation:
Exercise 1
Guess a number between 1 to 9 given by the user
Exercise 2
Check the validity of password input by the user.
Validation:
At least 1 letter between [a-z] and 1 letter between [A-Z]
At least 1 number between [0-9]
At least 1 character from [$#@]
Minimum length 6 characters
Maximum length 16 characters
Exercise 3
Get input of the age of 3 people by user and determine oldest and youngest among them
Exercise 4
A student will not be allowed to sit in if his/her attendance is less than 75%.
Take following input from user
Number of classes held
Number of classes attended.
And print
percentage of class attended
Is student is allowed to sit or not?
Exercise 5
Get an integer N from the user and perform the following actions:
if N is odd, print "weird"
if N is even and in the inclusive range of 2 to 5, print "Not Weird"
if N is even and in the inclusive range of 6 to 20, print "Weird"
if N is even and greater than 20, print "Not Weird"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started