Draft
change for pizza
907 of 1,238veitsi
Loading description...
Mathematics
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
too easy
Ok, with what it is right now is very simple, returning 200 minus the price, but a few suggestions that would make it a bi more difficult:
Not a suggestion.
I think that this kata should be made more difficult. I would pass in an additional parameter that would change the price of the pizza from 200 to something more or less. The new parameter being passed in could represent either a discount or extra toppings that cost more. It could be an integer, or it could be a double that represents a percentage.
That's a suggestion, not an issue.
it is just very very simple
This kata is way too simple, it barely even counts as an 8kyu assignment since you could argue it teaches the most basic syntax
8 kyu kata represent a beginner level. At this level the kata is only challenging for users new to programming. This includes programming tasks such as:
Defining a simple function (i.e. hello world) Basic variable assignments Fixing basic syntax issues Trivial algorithms such as basic if/else statements
Sorry but such an example has been attached before - try to add some extra options.
The CoffeeScript translation lacks the initial code of the other version.
Fixed it myself.
Dont work correctly in Java
Too simple even for an 8 kyu. I would add some edge cases like negative prices for example.
static keyword is missing in the method declaration and you are giving the answer to the people.
Way too easy even for an 8 kyu kata and there are some mistakes in the description.
Part 1, not an issue.
Part 2, already mentioned.
This comment has been hidden.
It's too easy for even an 8kyu. In C# the solution is nearly provided.
Not an issue.
Description is a bit unclear.
Duplicate issue
mabe ir is so easy because trying to figure out how to make them? That is what I was doing when I made and submittewd a python translation. trying to figure how making kata kumite or whatever works,
Waaaaay too easy
Not an issue.
The Javascript solution is also already provided
No it isn't.
C#: The solution is already provided.
im happy to help sergio make the pizza
Just too easy, even for an 8kyu.
Not an issue.
Java translation Kumited! please accept :D
'alr approved some time ago'
Needs random test cases
They were added in JS, however aside from that, a simple rewrite function kata is very likely a duplicate. Anyone who feels very strongly otherwise can close the dozens of other issues the kata author chose to ignore.
C# and CoffeeScript translations pending approval
'alr approved some time ago'
grammar
Duplicate issue.
Description wasn't very good.
Duplicate issue.
The description is difficult to understand
I am not sure I see the value in this problem.
too hard
The instructions are not as clear as they should be.
Duplicate issue.
Very easy, maybe some additional logic in there to trip up the users. Even then though this is probably an 8kyu as best.
Too easy
I agree, even for 8kyu.
Not an issue.
too trivial
This is too simple even for 8 kyu. Add a little twist.
C# translation kumited.
I added random tests and fixed the description's grammar.
minor grammer errors.
I would suggest making the following changes to resolve this
Every Tuesday, my friend Sergio visits a pizzeria and buys a pizza. Sergio always gives a 200 hryvnias banknote, as the pizza's price is always less than 200 hryvnias.
Prices sometimes change 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 a pizza.
Issue raised in more clearer form by other users, closing this for now.