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 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
Answers: 3
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
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
Mathematics, 11.10.2020 21:01
question
Mathematics, 11.10.2020 21:01
question
Mathematics, 11.10.2020 21:01