Suggestion: less questions about tipping

So, the PHP unit has a lot of stuff about tipping calculators, and as somebody from a country where tipping isn’t done (we just pay wait-staff a living wage), it was one of the biggest screeching roadblocks in the entire unit.

I’m sure Americans can do that sort of math handily on the fly, but if you’ve never done it before it’s a huge pain in the ■■■. It’s just not a daily calculation we have to make. It’s not necessarily that it’s difficult, it’s that it doesn’t come naturally and it bogs everything down. Lots of developers aren’t from the United States, but these questions are built for US users—a question that’s a bit less culturally-locked will probably go down a lot more smoothly.

Sorry, but being able to calculate a percentage is a basic skill taught to preteens everywhere. You divide the original number by 100 and then multiply it by the percentage you’re trying to calculate.

So if you were trying to calculate X + a 25% tip, you’d want X + (X/100*25).

There’s other times when developers would want to use this, not just developers from countries where tipping is customary. Discounts, for example. But come on, this is a skill that the average user of this site should definitely know, regardless of its use to calculate a tip.

Algebraically that is correct, but rather uncommon. We would normally write,

25/100 * X

so that all the literal values are written in a single term to arrive at a coefficient.

Yes, that is the better way if you are concerned about the coefficient. In the case of calculating tips, the value of X is already given in all the examples within the PHP course, so there wouldn’t be one.