Answer:
The algorithm is as follows:
1. Start
2. Input num
3. num = num + 5
4. num = 2 * num
5. num = num - 7
6. Print num
7. Stop
Step-by-step explanation:
The first and the last line of the algorithm starts and ends the algorithm
Line 2 gets user input;
Assume user input is 9
num = 9
Line 3: adds 5 to the inputted number
num = 9 + 5 = 14
Line 4 doubles the result of line 3
num = 2 * 14 = 28
Line 5 subtracts 7 from the result of 4
num = 28 - 7 = 21
Line 6 prints the output to the screen
Hence, the output of the algorithm is 21 if the user input is 9