subject
Engineering, 23.04.2020 07:17 jeancarlo1107

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: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
Answers: 2
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
Mathematics, 19.05.2020 06:57
question
Mathematics, 19.05.2020 06:57
question
Social Studies, 19.05.2020 06:57
Questions on the website: 13722362