< previous page page_499 next page >

Page 499
StateAbbreviationStateAbbreviation
Alabama
AL
Montana
MT
Alaska
AK
Nebraska
NE
Arizona
AZ
Nevada
NV
Arkansas
AR
New Hampshire
NH
California
CA
New Jersey
NJ
Colorado
CO
New Mexico
NM
Connecticut
CT
New York
NY
Delaware
DE
North Carolina
NC
Florida
FL
North Dakota
ND
Georgia
GA
Ohio
OH
Hawati
HI
Oklahoma
OK
Idaho
ID
Oregon
OR
Illinois
IL
Pennsylvania
PA
Indiana
IN
Rhode Island
RI
Iowa
IA
South Carolina
SC
Kansas
KS
South Dakota
SD
Kentucky
KY
Tennessee
TN
Louisiana
LA
Texas
TX
Maine
ME
Utah
UT
Maryland
MD
Vermont
VT
Massachusetts
MA
Virginia
VA
Michigan
MI
Washington
WA
Minnesota
MN
West Virginia
WV
Mississippi
MS
Wisconsin
WI
Missouri
MO
Wyoming
WY

3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
(Hint: Use nested Switch statements, where the outer statement uses the first letter of the abbreviation as its switch expression.)
2. Write a top-down design and a C++ program that reads a date in numeric form and prints it in English. For example:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Enter a date in the form mm dd yy.
10 27 42
October twenty-seventh, nineteen hundred forty-two.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Here is another example:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Enter a date in the form mm dd yy.
12 10 10
December tenth, nineteen hundred ten.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
The program should work for any date in the twentieth century and should print an error message for any invalid date, such as 2 29 83 (1983 wasn't a leap year).
3. Write a C++ program that reads full names from an input file and writes the initials for the names into an output file named initials. For example, the input

 
< previous page page_499 next page >