Advanced Placement (AP)

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

answer
Answers: 1

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 22.06.2019 08:30, mine9226
Who needed protection from railroads? 1865-1900 apush
Answers: 3
image
Advanced Placement (AP), 25.06.2019 08:00, dlacroix4720
In what way are innovations in technology and forms of goverment alike
Answers: 1
image
Advanced Placement (AP), 25.06.2019 19:00, KindaSmartPersonn
Environmental science jobs are expected to grow by how much between now and 2016? a) 5% b) 15% c) 25% d) 100%
Answers: 1
image
Advanced Placement (AP), 25.06.2019 20:00, ruchierosanp1n3qw
Julian and morgan obtain a 30-year 4/1 arm at 3.9% with a 3/13 cap structure in the amount of $182,345.? what is the remaining balance on the mortgage after the first four years? $141,062.12 $168,476.64 $172,148.77 $173,946.01
Answers: 2
Do you know the correct answer?
Write an application that reads an unsorted input file of populations for all U. S. counties in 1900...

Questions in other subjects:

Konu
Business, 24.12.2021 23:20
Konu
History, 24.12.2021 23:20