Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimizing Data Collection In Warzones

Authors: Aaget Aamber

1st Edition

B0CQRRFP5F, 979-8869065902

More Books

Students also viewed these Databases questions