Finance coding challenges

Practise finance with 5 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 5

Skills you'll practise: Integer money mathArithmetic expressionsGreatest common divisorInteger roundingLeast common multipleLoops over a listParsing recordsPiecewise rulesRounding rules
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
341
Challenges
241
Solutions shared
9
Languages

All challenges

Search by name or topic, or filter by difficulty.

5 challenges
Easy

Driving Costs

Work out the fuel cost of several trips from a car's miles per gallon and the gas price.

You'll learn Arithmetic expressionsLoops over a list
BeginnerCS1FinanceHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Smallest Multiple

Find the smallest positive number that every integer in a range divides evenly.

You'll learn Greatest common divisorLeast common multiple
BeginnerCompetitive-programmingConditionsFinanceFunctionsNumber-theoryProject Euler stylemath
No solutions yet
Easy

Tip Calculator

Work out the tip, the total and each person's share of a restaurant bill, all in cents.

You'll learn Integer money mathRounding rules
BeginnerCS1ConditionsFinanceFunctionsHomeworkIntro programmingStacksStudent-beginner
No solutions yet
Easy

Grocery List Totals

Add up a grocery receipt in cents, charging sales tax only on taxable items.

You'll learn Parsing recordsInteger money math
BeginnerCS1FinanceHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Payroll With Overtime

Compute each employee's weekly pay in cents with time and a half after 40 hours and double time after 50.

You'll learn Piecewise rulesInteger rounding
BeginnerCS1ConditionsFinanceFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet