Question: Program Please EL S. -0---- Question 21 (Essay Worth 9 points) Complete the static method years Tovote, which returns a String displaying the number of

EL S. -0---- Question 21 (Essay Worth 9 points) Complete the static method years Tovote, which returns a String displaying the number of years a person has been able to vote or the number of years they have to wait to vote (the voting age is 18). The age is passed in as an argument, public static string years Tovote (int agel ** Complete the code 2 X Source C BIUS X, X T. 18 18 Styles Normal . ? Question 22 Essay Worth 6 points) Complete the static method stringsearch, which returns a String that tells where the first occurrence of the characters (cht) were found ("The characters were found at _index.") or it says, "Those characters could not be found." The String to be searched (phrase) and the characters that are being looked for (chu) are passed in as arguments. public statie string stringsearch istring phrase, string che) ** Complete the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
