0% found this document useful (0 votes)
427 views4 pages

Java Assignment: Number and Password Validation

This document provides two programming challenges: 1) Write a program to accept three numbers from the user and find the smallest number. 2) Write a program to accept a password from the user and check if it meets the criteria of having at least 10 characters, only letters and digits, and at least 2 digits. A third challenge is to state if a given password rule is true/false and provide a Java program as an example.

Uploaded by

shimelis
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
427 views4 pages

Java Assignment: Number and Password Validation

This document provides two programming challenges: 1) Write a program to accept three numbers from the user and find the smallest number. 2) Write a program to accept a password from the user and check if it meets the criteria of having at least 10 characters, only letters and digits, and at least 2 digits. A third challenge is to state if a given password rule is true/false and provide a Java program as an example.

Uploaded by

shimelis
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Question 1 to 5
  • Question 8 to 9
  • Miscellaneous Concepts
  • Question 11 to 13

1)

12. Write a Java program that accept three number from user and to find the
smallest number among three numbers?

13. Write a Java program that accept password from user and to check whether
a string is a valid password
Password rules:
A password must have at least ten characters.
A password consists of only letters and digits.
A password must contain at least two digits
14. say true/ false with reason the following? And write java program to show the reason

1)
12. Write a Java program that accept three number from user and to find the 
       smallest number among three numbers?
13.

You might also like