Question: Reverse(String s): String -take a String as an argument and return the String reversed. Eg. Hello would be returned as olleH. binaryToDecimal(String s): int -take
Reverse(String s): String -take a String as an argument and return the String reversed. Eg. "Hello" would be returned as "olleH". binaryToDecimal(String s): int -take a String as an argument and return the decimal equivalent as an integer. If any of the characters are neither zero nor one return -1. Eg. "1000" would return 8. "10001" would return 17. "111111" would return 63. "111112" would return -1. "100001.1" would return -1. stats(String s, char c): void -take a String us an argument and print the number of words, the number of characters and the number of times char c appears in the String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
