Question: Algorithm simple Encryption: Input: a word to be encrypted Output: a set of numbers that represents the encrypted word let secretWord be an empty

Algorithm simple Encryption: Input: a word to be encrypted Output: a set of numbers that represents the encrypted word let secretWord be an empty set for each character in the word: let number = the position of the character in the alphabet add number to the set secretWord Answer the following questions about the above algorithm: (a) How many inputs does this algorithm have? What are these input(s)? (b) How many outputs does this algorithm have? What are these output(s)? (c) In as few words as possible, what is the problem that the algorithm is solving?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
