Question: Iam using netbean/Java to do this and it have unittest too so can you help me plzzz Scrabble Score API Page 1 of 1 Methods:
Iam using netbean/Java to do this and it have unittest too so can you help me plzzz
Scrabble Score API Page 1 of 1 Methods: calculateScore(String word) Identifier: Parameters word the word for which you should calculate the points in Scrabble Return Value: int-the number of points for the parameter word Other: This method should be static. This method should use the following system for scoring: 0 blank. 1 e, a i. o, n, r, t, la s, u 2-d, g 3 b, c m, p 4 f, h, v, w, y 8 -j, x. 10-q, z You should represent blank tiles by using the space character Ci.e.." If the parameter word is null or contains any characters that are not letters or a space, it should return the value -1 to indicate that the input was invalid. This method should be able to handle input that is lowercase, uppercase, or a mixture of both
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
