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:
Created | Sep 1, 2015 |
Warriors Trained | 1655 |
Total Skips | 132 |
Total Code Submissions | 1878 |
Total Times Completed | 1238 |
JavaScript Completions | 907 |
Java Completions | 212 |
CoffeeScript Completions | 14 |
C# Completions | 143 |
Total Stars | 8 |
% of votes with a positive feedback rating | 57% of 438 |
Total "Very Satisfied" Votes | 197 |
Total "Somewhat Satisfied" Votes | 109 |
Total "Not Satisfied" Votes | 132 |
Total Rank Assessments | 434 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |