7 kyu
Peter takes an exam in school
Loading description...
Fundamentals
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.
Solid C# Kata.
Hey! I have a unique problem, my solution works fine during testing, but when submitted fails and says that the term "Kata" does not exist in current context, did I remove something from the solution? any pointers on why this is happening would be great.
I need to see your code. Please put it here as a comment with spoiler content.
This comment has been hidden.
Nevemind, I fixed it.
The english in the description is a little awkward.
I would suggest the following:
"Peter is a teacher in a school. He wants to publish the names of the students who passed a recent exam in alphabetical order."
Thanks for suggestion
when i run my code i got this: Error: Command failed: /tmp/csharp116030-19-2w5u9y/code.cs(9,62): error CS0029: Cannot implicitly convert type
System.Collections.Generic.List' to
System.Collections.Generic.List'. WTF?Please post your solution here, then I can help you.
This comment has been hidden.
LOL. Didn't know C# error messages were this bad. Your code is returning a list of Student objects. The function is supposed to return the name of students, i.e. a list of strings. The error message seems absurd because it doesn't mention the type of List.
Thanks for help!
In the description you say: "If the grade of a student is equal to the acceptance grade, he will pass the exam." Could be more precise as students with higher grades should also pass the exam, shouldn'n they?! You should also add a test for equality of grades. For now both '>' and '>=' checks pass the tests.
It is now modified, the first test check that grades equal to acceptance grade will be passed. The description is also modified :)
There is no solution setup, which is not clear.
:D Is it ok now?
Yes, now its great!