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, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
question
Engineering, 04.07.2019 18:10
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
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
Advanced Placement (AP), 05.12.2020 08:10
question
History, 05.12.2020 08:10
question
History, 05.12.2020 08:10