Here's a Internet trick that when viral a bit ago. It must be true it was on the internet, I did update it for this year, 2018:
Write an algorithm, using the above as your guide. Use answer as an accumulator, shoeSize as a variable and birthYear as a variable.
Thanks for the question, here is the algorithm, comments are given at the end of each line so that you can follow the steps.
let me know for any questions
================================================================================
answer=0 // create a variable answer assign 0 as the initial value
shoeSize = INPUT('Enter shoe size ') // input from user shoe size to a variable shoeSize
birthYear = INPUT('Enter birth year ') // input from user birth year to a variable birthYear
// calculation starts below
answer = shoeSize*5 // multiply shoe size by 5 and save it to answer
answer = answer+50 // add 50 to answer and save it to answer
answer = answer*40 // multiply 40 to answer and save it to answer
answer = answer/2 // divide answer by 2 and save the result to answer
answer = answer + 1018 // add 1018 with answer and save it back ti answer
answer = answer - birthYear // subtract birth year and save
OUTPUT(answer) // output the answer at the end
========================================================================
Here's a Internet trick that when viral a bit ago. It must be true it was...