Coding Kata’s
A useful tool for learning a new language or exploring ideas like TDD is to use code Kata’s. A Code Kata is a small, reasonably simple problem. Here are a few example code Kata’s I have used.
CalcStats
Your task is to process a sequence of integer numbers to determine the following statistics:
- Minimum value
- Maximum value
- number of elements in the sequence
- average value
- Sum of all values
- Is the total sum an odd or even number
Try using a technology you are not familiar with and bonus Kudos for using TDD
Scrabble Score
Given a word, compute the scrabble score for that word.
1Letter Values:
2
31 – A,E,I,O,U<L,N,R,S,T
42 – D,G
53 – B,C,M,P
64 – F,H,V,W,Y
75 – K
88 – J,X
910 – Q,Z
Example:-
The word “Javascript” should return a score of 24.
Roman Numerals
Task #1
Write a function that converts an integer (up to a max value of 3,999) into Roman numerals
1I = 1
2V = 5
3X = 10
4L = 50
5C = 100
6D = 500
7M = 1000
Example:-
2021 = MMXXI
3999 = MMMCMXCIX
Optional Task #2
Write a function that converts Roman numeral strings back to their integer value