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
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
You know the right answer?
(1) input the password
(2) convert letters from the character array to numbers using the doubl...
Questions
Questions on the website: 13722359