Pure Programmer
Blue Matrix


Cluster Map

Project: Jackpot Winnings

If three people who contribute $10 each to buy lottery tickets win a jackpot of $20,000, compute how much profit each winner has earned. Use named constants where appropriate.

Output
$ node JackpotWinner.js Jackpot Profit per Player: $6656.67

Solution