Draft

change for pizza

907 of 1,238veitsi

Description:

My friend Sergio visits a pizzeria every Tuesday and buys a pizza. Sergio always gives a 200 hryvnias banknote, but the pizza's price is always less than 200 hryvnias.

The prices sometimes changes and the pizzeria needs a special program to calculate the amount of money they need to return. The pizzeria's owner studied qbasic in college so he wrote javascript as qbasic. Please, help him and fix a function that calculates the change for pizza.

Mathematics

Similar Kata:

Stats:

CreatedSep 1, 2015
Warriors Trained1655
Total Skips132
Total Code Submissions1878
Total Times Completed1238
JavaScript Completions907
Java Completions212
CoffeeScript Completions14
C# Completions143
Total Stars8
% of votes with a positive feedback rating57% of 438
Total "Very Satisfied" Votes197
Total "Somewhat Satisfied" Votes109
Total "Not Satisfied" Votes132
Total Rank Assessments434
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • veitsi Avatar
  • jhoffner Avatar
  • Javatlacati Avatar
  • Jotha Avatar
  • maxprilutskiy Avatar
  • ParanoidUser Avatar
  • siebenschlaefer Avatar
  • kazk Avatar
Ad