Hello, I am coding in Python 3 and was given this assignment, I currently have no idea where to start and Pseudocode for this problem would be extremely helpful.
Kevin and Stacy want to play a game they have titled 'Vowels or Not?'. Here are the game rules:
A player gets +1 point for each occurrence of the substring in the string S. For example, consider the string S= BANANA. Suppose Stacy's vowel beginning substring is ANA. In this case, ANA occurs twice in BANANA. Hence, Stacy will get 2 points for this substring. See the following figure for other examples. Your task is to determine the winner of the game and their score, given a string S.
Your program should:
Your code should be able to handle any string of uppercase letters of lengthn(1 ≤n ≤ 100).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here