Devam Ediyor

523995 Basic Java programming

Part 1

Main Method

Implement a program that reads in a user password and verifies it meets the following criteria:

Is at least 7 characters long

Contains at least 1 lower letter character

Contains at least 1 upper letter character

Contains at least 1 numeric digit

Contains at least 1 special character from the set: !#$%^&*

Does not contain the String �pass� or the String �word�

Output a string that prompts the user for a password and include the requirements above in your output.

Output a string that states valid or invalid. If invalid, state which rule above has not been met.

Utilize the following functionality:

� indexOf

Looping structure

� charAt()

� isDigit()

� isUpperCase()

� isLowerCase()

� and any additional functionality needed.

Comments are REQUIRED; flow charts and Pseudocode are NOT REQUIRED.

Proper coding style is REQUIRED.

This is a Sample of what it should look like:

Password Verifier

Enter a password that meets the following rules:

<list rules from above>

Password1

Invalid

Contains the string �word�

Missing a special character

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:

<list rules from above>

passWord123$

Invalid

Contains the string �pass�

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:

<list rules from above>

Hi

Invalid

Must be at least 7 characters long

Must contain a numeric digit

Must contain a special character

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:

<list rules from above>

Pa$$Word1

Valid

Part 2

Present an ORIGINAL example of the correct use of the printf method. This example must show how integers, doubles and Strings are properly formatted for display. At least one integer, one double, and one String must be printed using printf.

Show syntactically correct Java code that requests at least one number from the user. The program will store all the numbers the user provides into separate String variables, and it will use the appropriate methods from the wrapper classes to convert these Strings into numerical values. Afterwards, the program should use these numerical values to compute any mathematical formula that uses at least one method from the Math class and display the outcome with appropriate titles.

Beceriler: Her şey Kabul, Java, PHP

Daha fazlasını görün: implement program reads user password verifies, program password verifier java, program reads user password verifies, wrapper programming, what is a string in programming, what is a method in programming, what is a class in programming, what are classes in programming, variables in programming, strings in c programming, string programming, string c programming, programming what is a class, programming variables, programming style, programming structure, programming number, programming methods, programming method, programming comments, programming classes, programming class, program for java programming, printf c programming, original programming

İşveren Hakkında:
( 11 değerlendirme )

Proje NO: #2269934

Seçilen:

kingsom3a

Let's Start !!

0 gün içinde 10$ USD
(0 Değerlendirme)
0.0