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
solmaris [256]
3 years ago
7

Store the amount of the minimum loan in min_loan and the amount of the maximum loan in max_loan Then, store the name of the coun

try that received the largest loan in max_country and the smallest loan in min_country Hint: max and min are built in Python functions that you can use to find the minimum value or maximum value in any sequence.
Engineering
1 answer:
Tresset [83]3 years ago
3 0

Answer:

See Explanation

Explanation:

The question has missing details;however, I'm able to pick the following points from the question

  • There's supposed to be a list of loan amounts
  • There's also supposed to be a list of countries that took loans. This list will correspond to the loan list

Having said that, the question can be solved in two ways.

  • I prompt the user to enter loan amounts and corresponding country
  • I assume any value for the loan amounts and the country

I'll answer this question using the first method and the solution is as follows (See Comments for line by line explanation):

#This line prompt user for number of countries

n = int(input("Number of countries: "))

#This initializes an empty list for loan amounts

loan_amounts = []

#This initializes an empty list for country

country = []

#The following iteration gets names of countries and their respective loan amounts

<em>for i in range(0,n):</em>

<em>     country_name = input("Name of country: ")</em>

<em>     loan = int(input("Loan Amount: "))</em>

<em>     country.append(country_name)</em>

<em>     loan_amounts.append(loan)</em>

#This gets the maximum loan

max_loan = max(loan_amounts)

#This gets the index of the maximum loan

iindex = loan_amounts.index(max_loan)

#This gets the country with the maximum loan

max_country = country[iindex]

#This gets the minimum loan

min_loan = min(loan_amounts)

#This gets the index of the minimum loan

iindex = loan_amounts.index(min_loan)

#This gets the country with the minimum loan

min_country = country[iindex]

#This prints the country with the maximum loan and the loan amount

print(str(max_country)+": "+str(max_loan))

#This prints the country with the minimum loan and the loan amount

print(str(min_country)+": "+str(min_loan))

You might be interested in
For a turbulent flow of a fluid in 0.6 m diameter pipe, the velocity 0.15 m from the wall is 2.7 m/s. Estimate the wall shear st
MAVERICK [17]

Answer:

If the turbulent velocity profile in a pipe of diameter 0.6 m may be approximated by u/U=(y/R)^(1/7), where u is in m/s and y is in m and 0.15 m from the pipe.

Explanation:

hope it helps

3 0
2 years ago
What is the best source of information about the world?
iogann1982 [59]
To be honest theres a lot...
8 0
3 years ago
The pump of a water distribution system is powered by a 6-kW electric motor whose efficiency is 95 percent. The water flow rate
Sonja [21]

Answer:

a) Mechanical efficiency (\varepsilon)=63.15%  b) Temperature rise= 0.028ºC

Explanation:

For the item a) you have to define the mechanical power introduced (Wmec) to the system and the power transferred to the water (Pw).

The power input (electric motor) is equal to the motor power multiplied by the efficiency. Thus, Wmec=0.95*6kW=5.7 kW.

Then, the power transferred (Pw) to the fluid is equal to the flow rate (Q) multiplied by the pressure jump \Delta P. So P_W = Q*\Delta P=0.018m^3/s * 200x10^3 Pa=3600W.

The efficiency is defined as the ratio between the output energy and the input energy. Then, the mechanical efficiency is \varepsilon=3.6kW/5.7kW=0.6315=63.15\%

For the b) item you have to consider that the inefficiency goes to the fluid as heat. So it is necessary to use the equation of the heat capacity but in a "flux" way. Calling <em>H</em> to the heat transfered to the fluid, the specif heat of the water and \rho the density of the water:

[tex]H=(5.7-3.6) kW=\rho*Q*c*\Delta T=1000kg/m^3*0.018m^3/s*4186J/(kg \ºC)*\Delta T[/tex]

Finally, the temperature rise is:

\Delta T=2100/75348 \ºC=0.028 \ºC

7 0
3 years ago
Design a non-inverting amplifier so that it has a gain of +48 (this gain is positive). Pick resistor values that you have in the
Serhud [2]

Answer:

Rf=470 ohms R1=10ohms, Schmatic is attached

Explanation:

For non-inverting amplifiers

Gain= 1+(Rf/R1)

480=1+(Rf/R1)

470=Rf/R1

if Rf=470Ω and R1=10Ω

then,

47=47

3 0
3 years ago
Can someone tell me if i got this write
Katen [24]

Answer:

yes you got it correct

Explanation:

hope you have a good day and stay positive ❤️

6 0
3 years ago
Other questions:
  • What major advancement in machine tools occurred in the 1970s and what benefits did it provide? describe in your own words.
    15·2 answers
  • Use the orange points (square symbol) to plot the initial short-run industry supply curve when there are 20 firms in the market.
    5·1 answer
  • A medium-sized jet has a 3.8-mm-diameter fuselage and a loaded mass of 85,000 kg. The drag on an airplane is primarily due to th
    9·1 answer
  • Argon is compressed in a polytropic process with n = 1.2 from 100 kPa and 30°C to 1200 kPa in a piston–cylinder device. Determin
    14·1 answer
  • Give what you now know about the transportation industry, describe in 50 words or less some key issues which are likely to limit
    9·1 answer
  • What learning is required to become a mechanical engineer?
    14·1 answer
  • Which option identifies the step skipped in the following scenario?
    9·2 answers
  • What are flip flops and what do they look like
    14·2 answers
  • ) Assuming different AM regulations; the receiver is using mixer with subtracting format. The frequency selectivity ratio is app
    12·1 answer
  • In which type of shoot is continuous lighting used?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!