Computers and Technology

Part 2: 1. Create a new Java project called Lab8B and a class named Lab8B 2. Inside this project create a class called PasswordChecker, which should have the following. a. A String instance variable named password. b. A constructor that accepts one string as a parameter and puts it into the instance variable. c. A bool method named checkPassword that returns a true if it is valid, and false otherwise. The rules for a password are: i. It must be at least 8 characters long ii. It must have at least one number in it. iii. It must have at least one of the following characters: ! & * % $ iv. It cannot have two identical characters beside each other. (Ex – Their8WWorld is invalid because of the 2 WW beside each other.) 3. Back in the main method of the outer class: a. Ask the user to enter a password b. Declare and instantiate a PasswordChecker object (with a name of your choice) and send in the input password as the parameter. c. Call checkPassword for the object and print the result with a label.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:30, xolocsin
Can you make money in why are you guys so
Answers: 1
image
Computers and Technology, 22.06.2019 02:10, breanastone14
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read β€œsuburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, zeesharpe05
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
Do you know the correct answer?
Part 2: 1. Create a new Java project called Lab8B and a class named Lab8B 2. Inside this project cre...

Questions in other subjects:

Konu
Mathematics, 22.01.2020 02:31
Konu
Mathematics, 22.01.2020 02:31