I have no clue what to do, i have been working on this for the past 4 hours and still no clue. this is the assignment.
Scenario:
The Client will be receiving data in a text file. Each data entity is formatted as follows…
“Integer” space “string” newline
The Client needs a program to allow the following operations…
1. Read the data file
2. Sort the data entities alphabetically by the string value
3. Display the sorted list of data entities
4. Output the sorted list to a new text file
5. Search for and display the entity with the largest integer
Technical considerations
1. A class will be defined to represent the data
2. Each entity should be represented as an object
3. The string data may include spaces
4. The integer data should be greater than or equal to zero
5. The input file name and the new file name should be user defined
6. The data display should be formatted to provide :
· Column Headings
· A separator row after the Heading
· Text data left aligned
· Numeric data right aligned
7. The new file data should be formatted the same as the input file data
8. Provide user interface for any needed choices
9. Provide user messages to describe status and progress
10. Standard sort or search, if used, should be in a library file
Documentation requirements
a. Name, Date, Title
b. User requirements
c. Class UML diagram
d. Overall and Function algorithms
e. Test Plan
f. Appropriate Comments
Deliverables
Project file (.dev)
Class header file (.h)
Class implementation file (.cpp)
Main file (.cpp)
Function Library file (,cpp, if available)
New Output file (.txt)
Screen shot of execution (.doc, or other)
--------------------------
and here is the "In_File" included with the states and population
20851820 Texas
18976457 New York
15982378 Florida
12419293 Illinois
12281054 Pennsylvania
11353140 Ohio
9938444 Michigan
33871648 California
8414350 New Jersey
8186453 Georgia
8049313 North Carolina
7078515 Virginia
6080485 Indiana
5894121 Washington
5689283 Tennessee
5595211 Missouri
5363675 Wisconsin
5296486 Maryland
5130632 Arizona
6349097 Massachusetts
4919479 Minnesota
4468976 Louisiana
4447100 Alabama
4301261 Colorado
4041769 Kentucky
626932 Alaska
4012012 South Carolina
3450654 Oklahoma
3421399 Oregon
3405565 Connecticut
2926324 Iowa
2844658 Mississippi
2688418 Kansas
2673400 Arkansas
2233169 Utah
1998257 Nevada
1819046 New Mexico
1808344 West Virginia
493782 Wyoming
1711263 Nebraska
1293953 Idaho
1274923 Maine
1235786 New Hampshire
1211537 Hawaii
1048319 Rhode Island
902195 Montana
783600 Delaware
754844 South Dakota
642200 North Dakota
608827 Vermont