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]
4 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]4 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
5. If a pilot wants to accelerate, which force
Murljashka [212]

Answer:

Thrust

Explanation:

If the pilot wants to accelerate the aircraft, the aircraft needs more power to produce more thrust. The aircraft will go faster when the amount of thrust is greater than the amount of drag.

3 0
3 years ago
Ammonia enters the expansion valve of a refrigeration system a temperature of 24oC and pressure of10 bar and exits at 1 bar. If
miskamm [114]

Answer:

X=0.194

T=-33.6C

Explanation:

Hello!

To solve this problem use the following steps!

1. We will call the expansion valve inlet 1 and exit 2

2.Through laboratory tests, thermodynamic tables were developed, these allow to know all the thermodynamic properties of a substance (entropy, enthalpy, pressure, specific volume, internal energy etc ..)

through prior knowledge of two other properties such as pressure and temperature.

3. Find the enthalpy of state 1 using pressure and temperature using thermodynamic tables

h1=Enthalpy(Ammonia;T=24C;P=1000kPa)=312.9KJ/kg

4. An expansion valve is a device which does not have heat or work exchange which means that the enthalpy of state one is equal to that of state 2, so using thermodynamic tables uses the pressure of state 2 and enthalpy of state 1 to find quality and temperature

x2=Quality(Ammonia;P=100kPa;h=h1=312.9KJ/kg) =0.194

T2=Temperature(Ammonia;P=100kPa;h=h1=312.9KJ/kg)=-33.6C

6 0
4 years ago
What is 3'-9" in feet?
melomori [17]

Answer:

2.25 feet

Explanation:

8 0
3 years ago
Many companies are combining their online business activities with an existing physical presence. In about 100 words, explain wh
Daniel [21]

Answer:

Companies are combining their online business activities with their existing physical presence in order to lower costs of their operations. When both these things are combined labor costs are reduced because with online presence the company has to have limited number of branches, inventory costs are reduced because additional inventories for every physical outlet is not required and delivery costs are reduced because now company don't have to supply the things to all the outlets on regular basis.

Trust of the people is also improved because mostly people are reluctant to order from the brands that only have their online store and donot have any physical presence. Value added services are provided by a company who have both online and offline presence like home delivery and customized offerings.

 

3 0
3 years ago
Create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar N, scalars L and W in feet and scalars T1 a
Shalnov [3]

Answer:

clear, clc

prob3_5([1,2,3],[6,5,7],12,11,22,55,76)

function T=prob3_5(x,y,N,L,W,T1,T2)

w=zeros(1,length(x));

for n=1:2:N

for i=1:length(x)

w(i)=w(i)+(2/pi)*(2/n)*sin(n*pi*x(i)/L).*sinh(n*pi*y(i)/L)/sinh(n*pi*W/L);

end

end

T=(T2-T1)*w+T1;

end

Explanation:

Please input the commands into MATLAB

3 0
3 years ago
Other questions:
  • A circuit with ____ -diameter connecting wires at a _____ temperature will have the least electrical resistance.
    13·1 answer
  • The 500 lb load is being hoisted at a constant speed using the motor M, which has a weight of 50 lb. The beam has a weight of 40
    8·1 answer
  • A piston–cylinder device contains 0.85 kg of refrigerant- 134a at 2108C. The piston that is free to move has a mass of 12 kg and
    15·1 answer
  • Which of the following is not a step in a building’s life cycle?
    6·1 answer
  • The main function of diversified investments is to:
    6·2 answers
  • Which option distinguishes the step in the engineering design phase described in the following scenario?
    8·1 answer
  • 2) The switch in the circuit below has been closed a long time. At t=0, it is opened.
    5·1 answer
  • As a result of the 1934 requirement that public companies’ annual financial statements be "certified…by independent public accou
    11·1 answer
  • What are two ways you can see that there is a smaller load going to the base of the transistor?
    7·1 answer
  • Refrigerant 134a passes through a throttle valve as part of a refrigeration cycle. The fluid enters the valve as compressed liqu
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!