7 kyu
Pizza Payments
900 of 2,292KarinJacobs
Description:
Kate and Michael want to buy a pizza and share it. Depending on the price of the pizza, they are going to divide the costs:
- If the pizza is less than €5,- Michael invites Kate, so Michael pays the full price.
- Otherwise Kate will contribute 1/3 of the price, but no more than €10 (she's broke :-) and Michael pays the rest.
How much is Michael going to pay? Calculate the amount with two decimals, if necessary.
Fundamentals
Similar Kata:
Stats:
Created | May 22, 2018 |
Published | May 22, 2018 |
Warriors Trained | 3371 |
Total Skips | 41 |
Total Code Submissions | 12520 |
Total Times Completed | 2292 |
JavaScript Completions | 900 |
Python Completions | 912 |
Ruby Completions | 112 |
Java Completions | 435 |
Total Stars | 33 |
% of votes with a positive feedback rating | 87% of 500 |
Total "Very Satisfied" Votes | 387 |
Total "Somewhat Satisfied" Votes | 99 |
Total "Not Satisfied" Votes | 14 |
Total Rank Assessments | 17 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |