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

 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!