As it happens, someone put forward the idea that, since PPCG has graduated, up votes on questions should be worth 10 rep. As a result, I started wondering how much rep I would have if it had always been 10 rep.
Given a PPCG user's id as input, output how much total rep the user would have if question up votes were worth +10.
I, Beta Decay (user id 30525), have 6744 rep. 3488 of that was earned by posting questions (calculated by subtracting the total rep lost from downvotes from the total rep gained from upvotes).
Firstly, we subtract 3488 from 6744, giving us 3256 rep, the amount earned from posting answers.
Next, we find out how much I would have earned from 10 rep questions by simply multiplying 3488 by 2, giving us 6976.
Finally, we add 3256 and 6976 together to get a final answer of 10232 rep.
A simplified method is to take the total, 6744 and add the rep from questions, 3488, giving is 10232 rep.
For continuity, you must use the method described above
Note that these examples are subject to change and are unlikely to stay current.
Helka Homba (UID 26997)
Martin Ender (UID 8478)
Downgoat (UID 40695)
Internet access is allowed. Similarly, access to the Stack Exchange API is allowed. However, URL shorteners are disallowed.
T-SQL entrants using the Stack Exchange Data Explorer are allowed.
You also do not have to take into account the daily rep cap of 200.
Shortest code in bytes wins.