The app will take the amount of the bill, multiples that with the tip percentage to get the full amount of the tip. It will do two math equations: divide the tip by the number of people, then in another variable adds the total tip to the amount of the bill and divides that by the number of people. The totals of those two will then be rounded up to the nearest cent. It will then display the three totals: Bill Cost, Tip Amount, and Grand Total per person. If no people are added to the splitting of the bill, only tip amount and total will show. If there is no amount or no service selected, then an error message will be displayed.
You can download and play with the Visual Basic program here:
Link to codepen for the web app version: