1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Gemiola [76]
3 years ago
5

Write a function named "total_population" that takes a string then a list as parameters where the string represents the name of

a CSV file containing city data in the format "CountryCode,CityName,Region,Population,Latitude,Longitude" and the second parameter is a list where each element is itself a list containing 3 strings as elements representing the CountryCode, CityName, and Region in this order. Return the total population of all cities in the list. Note that the city must match the country, name, and region to ensure that the correct city is being read.
Engineering
1 answer:
adelina 88 [10]3 years ago
5 0

Answer:

Return the total population of all cities in the list.

Explanation:

It is for every element in cityinfo. It works not only for one array but multiple.

I attached the document with the code or function with the name import cvs becuase when I wrote it down and it sent a message written on red about inappropriate words.

Download docx
You might be interested in
Joe is a chemical engineer whose plant discharges heavy metals into the local river. By the test authorized by the city governme
chubhunter [2.5K]

Answer:

B probably

Explanation:

Because the prompt doesn't specify what sort of violation it could be anything maybe when they release the metals during the day and so on.

5 0
2 years ago
Come and look on my attachment​
CaHeK987 [17]

Crazy Guy what do uh mean ?

4 0
2 years ago
A rectangular steel bar, with 8" x 0.75" cross-sectional dimensions, has equal and opposite moments applied to its ends.
denpristay [2]

Answer:

Part a: The yield moment is 400 k.in.

Part b: The strain is 8.621 \times 10^{-4} in/in

Part c: The plastic moment is 600 ksi.

Explanation:

Part a:

As per bending equation

\frac{M}{I}=\frac{F}{y}

Here

  • M is the moment which is to be calculated
  • I is the moment of inertia given as

                         I=\frac{bd^3}{12}

Here

  • b is the breath given as 0.75"
  • d is the depth which is given as 8"

                     I=\frac{bd^3}{12}\\I=\frac{0.75\times 8^3}{12}\\I=32 in^4

  • y is given as

                     y=\frac{d}{2}\\y=\frac{8}{2}\\y=4"\\

  • Force is 50 ksi

\frac{M_y}{I}=\frac{F_y}{y}\\M_y=\frac{F_y}{y}{I}\\M_y=\frac{50}{4}{32}\\M_y=400 k. in

The yield moment is 400 k.in.

Part b:

The strain is given as

Strain=\frac{Stress}{Elastic Modulus}

The stress at the station 2" down from the top is estimated by ratio of triangles as

                        F_{2"}=\frac{F_y}{y}\times 2"\\F_{2"}=\frac{50 ksi}{4"}\times 2"\\F_{2"}=25 ksi

Now the steel has the elastic modulus of E=29000 ksi

Strain=\frac{Stress}{Elastic Modulus}\\Strain=\frac{F_{2"}}{E}\\Strain=\frac{25}{29000}\\Strain=8.621 \times 10^{-4} in/in

So the strain is 8.621 \times 10^{-4} in/in

Part c:

For a rectangular shape the shape factor is given as 1.5.

Now the plastic moment is given as

shape\, factor=\frac{Plastic\, Moment}{Yield\, Moment}\\{Plastic\, Moment}=shape\, factor\times {Yield\, Moment}\\{Plastic\, Moment}=1.5\times400 ksi\\{Plastic\, Moment}=600 ksi

The plastic moment is 600 ksi.

3 0
3 years ago
A specimen of a 4340 steel alloy with a plane strain fracture toughness of 54.8 Mpa root m is exposed to a stress of 1030 MPa. W
cupoosta [38]

Answer:

It will not  experience fracture when it is exposed to a stress of 1030 MPa.

Explanation:

Given

Klc = 54.8 MPa √m

a = 0.5 mm = 0.5*10⁻³m

Y = 1.0

This problem asks us to determine whether or not the 4340 steel alloy specimen will fracture when exposed to a stress of 1030 MPa, given the values of <em>KIc</em>, <em>Y</em>, and the largest value of <em>a</em> in the material. This requires that we solve for <em>σc</em> from the following equation:

<em>σc = KIc / (Y*√(π*a))</em>

Thus

σc = 54.8 MPa √m / (1.0*√(π*0.5*10⁻³m))

⇒ σc = 1382.67 MPa > 1030 MPa

Therefore, the fracture will not occur because this specimen can handle a stress of 1382.67 MPa before experience fracture.

3 0
3 years ago
I really need help ASAP!!!
ValentinkaMS [17]

Explanation:

He would work on the thing like in the method you work on your question.

8 0
3 years ago
Other questions:
  • Based in bonding theory, explain why heat capacity increases when you consider metals, ceramics and polymers.
    14·1 answer
  • what should be used to feed material into a machine? A.joy stick B.push stick C. your feet D. your hands​
    14·1 answer
  • An Otto cycle engine is analyzed using the air standard method. Given the conditions at state 1, compression ratio (r), and pres
    6·1 answer
  • A heat recovery system​ (HRS) is used to conserve heat from the surroundings and supply it to the Mars Rover. The HRS fluid loop
    12·1 answer
  • What is the maximum volume flow rate, in m^3/hr, of water at 15.6°C a 10-cm diameter pipe can carry such that the flow will be l
    9·1 answer
  • Problem 89:A given load is driven by a 480 V six-pole 150 hp three-phase synchronous motor with the following load and motor dat
    11·1 answer
  • What is the chord length of an airplane called?
    14·1 answer
  • Choose the three questions that an engineer should ask himself or herself when identifying the need of a problem.
    6·2 answers
  • Planetary gears require the armature to be offset via a gear housing that holds the starter drive.
    12·2 answers
  • Jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!