subject
Engineering, 13.11.2019 00:31 queenkimm26

(1) input the password
(2) convert letters from the character array to numbers using the double()function and subtract 32.
(3) add up all the numbers in the array using the sum()function.
(4) convert back to a number between 0 and 94 by using the mod() function to divide by 95 and keep the remainder.
(5) convert back to a characters by adding 32 and using the char() function.

write a simple password checker that asks a user to input a password, hashes that password using the algorithm above, and compares to the hashed password 'w'.the code should then print out if the password was "correct" or not. run your code with the correct password "hello", the incorrect password "goodbye", and the password "! ".(make sure there’s five exclamation points).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:20
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
question
Engineering, 04.07.2019 19:10
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
You know the right answer?
(1) input the password
(2) convert letters from the character array to numbers using the doubl...
Questions
question
Social Studies, 01.09.2020 17:01
question
Mathematics, 01.09.2020 17:01
Questions on the website: 13722361