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
$ g++ -std=c++17 JackpotWinner.cpp -o JackpotWinner -lfmt $ ./JackpotWinner Jackpot Profit per Player: $6656.67

Solution