Saint Louis University |
Computer Science 150
|
Dept. of Math & Computer Science |
We will work with the list of state names. Also, for some of the more
advanced questions here, we will also need a list of capitals. To get
going, here are the definitions.
Problems
All of these problems are for practice. You are freely encouraged to work together and you do not need to submit any of this work for a grade.
Which state names use the letter 'x'?
What state(s) start and end with the same character (in a case insensitive manner).
What state names have more vowels (aeiou) than consonants?
What state names have two or more pairs of consecutively repeated letters? (e.g., Mississippi)
The next set involve use of the capitals as well.
Find all capitals that have the word 'City' in their name
Find those states, whose capitals that have the word 'City' in their name.
Find state/capital pairs that start with the same letter.
Find all state capitals that have their state's name as part of the capital's name.
If you were to combine the city and state names, which capital has the most characters (including spaces).