Menu

Question 3 3 Points Purpose Understand Parts Algorithm Degree Difficulty Moderate Algorith Q43883121

Question 3 (3 points): Purpose: To understand the parts of an algorithm. Degree of Difficulty: Moderate Algorithm simpleEncry

Question 3 (3 points): Purpose: To understand the parts of an algorithm. Degree of Difficulty: Moderate Algorithm simpleEncryption: 2 Input: a word to be encrypted 3 Output: a set of numbers that represents the encrypted word OVOUAW 5 let secretWord be an empty set 7 for each character in the word: let number = the position of the character in the alphabet add number to the set secret Word 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? Show transcribed image text Question 3 (3 points): Purpose: To understand the parts of an algorithm. Degree of Difficulty: Moderate Algorithm simpleEncryption: 2 Input: a word to be encrypted 3 Output: a set of numbers that represents the encrypted word OVOUAW 5 let secretWord be an empty set 7 for each character in the word: let number = the position of the character in the alphabet add number to the set secret Word 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?

Expert Answer


Answer to Question 3 (3 points): Purpose: To understand the parts of an algorithm. Degree of Difficulty: Moderate Algorithm simple…

OR