Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create the following methods:
- log2(double number) : double
- getRange(String s): integer
- hasUpper(String s): boolean
- hasLower(String s): boolean
- hasDigit(String s): boolean
- getSymbolCount(String s, String allowedSymbols): integer
- calcEntropy(String s)
- Create tests for each of the above methods.
- You should be sure to test for all situations, including pathologic cases There should be at least 20ish tests for each of the functions.
Advertisement
Add Comment
Please, Sign In to add comment