Problem of the Day
A new programming or logic puzzle every Mon-Fri

Tip Calculator

Today's problem is an easy one. Given a floating point integer, return back (or print out) 15%, 18%, 20%, and 25% of that amount rounded to the nearest cent. For bonus points write it in a language that will allow you to execute it on the go so that you can use it next time you're at a place where tipping is normal.

Permalink: http://problemotd.com/problem/tip-calculator/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein