Broken Keyboard
Description:
You decided to sit down and make a nice simple program, little did you know your little sister has removed both of the shift buttons and the caps lock from your keyboard.
In other words: In this this Kata you need to make your program without any capital letters or square brackets [].
Why no square brackets you ask?
I don't know I felt like it ㄟ(o-o)ㄏ
(In order to prevent cheating, \ is not allowed either)
The program is simple, you only need to have three functions (you can have more if you want):
add
Add should be able to get any of the following: int, char, float, double, boolean, String.
If the input is an int it should store that number, oterwise just dont crash...
avg
Avg should return the average of all of the ints recived so far and then remove them all.
Avg should return an int.
Avg will never be called befor a valid int was added.
get_amount_of
Get_amount_of should return the amount of times the given number was entered
Keep in mind that numbers are erased after avg and shouldn't be counted
That's it! Have fun!
Similar Kata:
Stats:
Created | Oct 15, 2020 |
Published | Aug 11, 2021 |
Warriors Trained | 185 |
Total Skips | 77 |
Total Code Submissions | 174 |
Total Times Completed | 14 |
Java Completions | 14 |
Total Stars | 7 |
% of votes with a positive feedback rating | 81% of 8 |
Total "Very Satisfied" Votes | 6 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 6 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 6 kyu |