subject

Write an application that reads an unsorted input file of populations for all U. S. counties in 1900. Download the input file at this link and copy under your Eclipse project space. Each line in this file (as shown in the partial listing below) represents a single county containing three items representing the state name of the county, the county name, and the county population. Note that each state and county name is in lower-case and those comprised with multiple words are separated by an underscore.

south_carolina abbeville 33400
louisiana acadia 23483
virginia accomack 32570
idaho ada 11559
iowa adair 16192

Design a C++ class (named County) to store and operate on the county information (state name, county name, and population). Open the file, read each line, create a County class object, and store the object in a C++ vector. After all the counties have been read, loop through the vector and change the first character of each word in each state and county name to upper-case and change each underscore to a space. Next, prompt the user and perform the selected operations using the menu shown in the example below. To receive full credit, you must:

1) Read the input file one time only (do not open and close the file more than once)
2) Design and develop a C++ class as described above
3) Use the C++ vector class
4) Use the C++ string class

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 22.06.2019 10:00
Which of the following statements comparing debit cards to credit cards is true? debit cards allow you to draw funds directly from your checking account. debit cards typically offer greater fraud protection than credit cards. debit cards never require a signature to finalize a purchase like credit cards. debit cards charge higher interest rates on purchases than credit cards.
Answers: 1
question
Advanced Placement (AP), 23.06.2019 04:31
Marie places her house plant near a window. the sun shines in the window, but her plant is slightly out of reach for the sun. what will marie's plant do to survive
Answers: 1
question
Advanced Placement (AP), 23.06.2019 13:30
Free points + free ! if answered correctly which of these is not a good tip for passing? a. make sure you are on an area of road where it is legal and safe to pass. b. always drive at a safe speed at or below the speed limit. c. you may reduce your following distance below four seconds when passing. d. make sure there is a safe gap in traffic before you change lanes.
Answers: 2
question
Advanced Placement (AP), 25.06.2019 01:50
Look back at act iv scene v to read over ophelia’s interactions with claudius and gertrude as well as laertes. then, compare her dialogue to hamlet’s dialogue and soliloquies previously analyzed in acts i–iv. what is ophelia’s state of mind versus hamlet’s?
Answers: 3
You know the right answer?
Write an application that reads an unsorted input file of populations for all U. S. counties in 1900...
Questions
question
Health, 14.12.2020 19:10
question
Mathematics, 14.12.2020 19:10
question
Mathematics, 14.12.2020 19:10
question
Social Studies, 14.12.2020 19:10