6 kyu
FIXME: Hello
433 of 2,541dinglemouse
Description:
The code provided has a method hello
which is supposed to show only those attributes which have been explicitly set. Furthermore, it is supposed to say them in the same order they were set.
But it's not working properly.
Notes
There are 3 attributes
- name
- age
- sex ('M' or 'F')
When the same attribute is assigned multiple times the hello
method shows it only once. If this happens the order depends on the first assignment of that attribute, but the value is from the last assignment.
Examples
Hello.
Hello. My name is Bob. I am 27. I am male.
Hello. I am 27. I am male. My name is Bob.
Hello. My name is Alice. I am female.
Hello. My name is Batman.
Task
Fix the code so we can all go home early.
Debugging
Similar Kata:
Stats:
Created | May 27, 2018 |
Published | May 27, 2018 |
Warriors Trained | 8265 |
Total Skips | 225 |
Total Code Submissions | 18199 |
Total Times Completed | 2541 |
Java Completions | 433 |
Python Completions | 821 |
JavaScript Completions | 751 |
C++ Completions | 241 |
Kotlin Completions | 109 |
C Completions | 71 |
C# Completions | 199 |
Lua Completions | 7 |
Total Stars | 116 |
% of votes with a positive feedback rating | 90% of 471 |
Total "Very Satisfied" Votes | 387 |
Total "Somewhat Satisfied" Votes | 71 |
Total "Not Satisfied" Votes | 13 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |