Screen Capture of C++ Program for Project 4
[~/teaching/8711/su00][12:20pm] ./p4 geo
MAIN MENU
1. Given first letter print states and capitals
2. Print top 5 populated states
3. Given state name, list all information about state
4. Print alphabetical count of number of states
5. Quit
Enter your option: 1
Enter first letter of state: a
STATE CAPITAL
-----------------------------------------
| Alabama | Montgomery |
| Alaska | Juneau |
| Arizona | Phoenix |
| Arkansas | Little Rock |
-----------------------------------------
MAIN MENU
1. Given first letter print states and capitals
2. Print top 5 populated states
3. Given state name, list all information about state
4. Print alphabetical count of number of states
5. Quit
Enter your option: 2
STATE POPULATION
------------------------------------------
| California | 33,145,121 |
| Texas | 20,044,141 |
| New York | 17,990,455 |
| Florida | 12,937,926 |
| Illinois | 12,128,370 |
------------------------------------------
MAIN MENU
1. Given first letter print states and capitals
2. Print top 5 populated states
3. Given state name, list all information about state
4. Print alphabetical count of number of states
5. Quit
Enter your option: 3
Enter state name: georgia
GEORGIA
--------------------------------------------------------------------------------
State Code: GA
State Capital: Atlanta
Nickname: Peach State
Population: 6,478,216
Major Cities: Atlanta, Columbus, Savannah, Macon
--------------------------------------------------------------------------------
MAIN MENU
1. Given first letter print states and capitals
2. Print top 5 populated states
3. Given state name, list all information about state
4. Print alphabetical count of number of states
5. Quit
Enter your option: 4
Alphabetical State Count
--------------------------------
A: 4 B: 0 C: 3 D: 1
E: 0 F: 1 G: 1 H: 1
I: 4 J: 0 K: 2 L: 1
M: 8 N: 8 O: 3 P: 1
Q: 0 R: 1 S: 2 T: 2
U: 1 V: 2 W: 4 X: 0
Y: 0 Z: 0
--------------------------------
MAIN MENU
1. Given first letter print states and capitals
2. Print top 5 populated states
3. Given state name, list all information about state
4. Print alphabetical count of number of states
5. Quit
Enter your option: 5
[~/teaching/8711/su00][12:22pm]