#!/usr/bin/env node; /****************************************************************************** * This program computes jackpot winnings. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ const Utils = require('./Utils'); var PLAYERS = 3; var PLAYER_BUYIN = 10.; var JACKPOT = 20000.; const main = async () => { let profitPerPlayer = JACKPOT / PLAYERS - PLAYER_BUYIN; console.log(Utils.format("Jackpot Profit per Player: ${0:.2f}", profitPerPlayer)); } main().catch( e => { console.error(e) } );