COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The following algorithm should take as input two numbers, add them together, multiply the answer by 11, add 4, then divide by 2. It should output the result. Identify the correct algorithm.
|
number = input(“Enter a number”)number = input(“Enter the second number”)final = (((number + number) * 11) + 4) / 2 print(final)
|
|
number2 = input(“Enter the second number”)final = (((number + number2) * 11) + 4) * 2 print (final)
|
|
number = input(“Enter a number”)number2 = input(“Enter the second number”)final = number + number2 +4 *11 / 2 print (final)
|
|
number = input(“Enter a number”)number2 = input(“Enter the second number”)final = (((number + number2) * 11) + 4) / 2 print (final)
|
Explanation:
There is 1 question to complete.