Question

Here's a Internet trick that when viral a bit ago. It must be true it was...

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:

    Take your shoe size.
    Mutliple by 5.
    Add 50.
    Multiple by 40.
    Divide by 2.
    Add 1018.
    Subtract your birth year.
    Answer = your shoe size and your age (first digit(s) shoe size, last 2 age)

Write an algorithm, using the above as your guide. Use answer as an accumulator, shoeSize as a variable and birthYear as a variable.

This is worth 10 points.

Homework Answers

Answer #1

Algorithm:

START
    input(shoeSize)
    input(birthYear)
    answer = 0
    answer = shoeSize * 5
    answer = answer + 50
    answer = answer * 40
    answer = answer / 2
    answer = answer + 1018
    answer = answer - birthYear
    print(answer)
END

Screenshot:

Kindly rate the answer and for any help just drop a comment

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions