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
lbvjy [14]
3 years ago
10

Please write the following code in Python 3. Also please show all output(s) and share your code.

Engineering
1 answer:
maksim [4K]3 years ago
6 0

Answer:

sum2 = 0

counter = 0

lst = [65, 78, 21, 33]

while counter < len(lst):

   sum2 = sum2 + lst[counter]

   counter += 1

Explanation:

The counter variable is initialized to control the while loop and access the numbers in <em>lst</em>

While there are numbers in the <em>lst</em>,  loop through <em>lst</em>

Add the numbers in <em>lst</em> to the sum2

Increment <em>counter</em> by 1 after each iteration

You might be interested in
He is going ___ in the hot air ballon​
Vladimir [108]

no artical shoul be used here

5 0
2 years ago
Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by fi
KATRIN_1 [288]

Answer:

Answer for the question:

"Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by finding a weight vector w whose decision boundary wx. "

is explained in the attachment.

Explanation:

8 0
3 years ago
Air (cp = 1.005 kJ/kg·°C) is to be preheated by hot exhaust gases in a cross-flow heat exchanger before it enters the furnace. A
uysha [10]

Answer:

Q=67.95 W

T=119.83°C

Explanation:

Given that

For air

Cp = 1.005 kJ/kg·°C

T= 20°C

V=0.6 m³/s

P= 95 KPa

We know that for air

P V = m' R T

95 x 0.6 = m x 0.287 x 293

m=0.677 kg/s

For gas

Cp = 1.10 kJ/kg·°C

m'=0.95 kg/s

Ti=160°C   ,To= 95°C

Heat loose by gas = Heat gain by air

[m Cp ΔT] for air =[m Cp ΔT] for gas

by putting the values

0.677 x 1.005 ( T - 20)= 0.95 x 1.1 x ( 160 -95 )

T=119.83°C

T is the exit temperature of the air.

Heat transfer

Q=[m Cp ΔT] for gas

Q=0.95 x 1.1 x ( 160 -95 )

Q=67.95 W

7 0
3 years ago
Steam enters an adiabatic turbine at 10 MPa and 500°C and leaves at 10 kPa with a quality of 90 percent. Neglecting the changes
Anna35 [415]

Answer:

The mass flow rate of steam m=5.4 Kg/s

Explanation:

Given:

  At the inlet of turbine P=10 MPa  ,T=500 C

 AT the exit of turbine  P=10 KPa   ,x=0.9

 Required power=5 MW

From steam table

<u> At 10 MPa and 500 C:</u>

  h=3374 KJ/Kg  ,s=6.59 KJ/Kg-K  (Super heated steam table)

<u>At 10 KPa:</u>

h_g=2675.1 KJ/Kg, h_f=417.51  KJ/Kg

s_g= 7.3  KJ/Kg-K                ,s_f=1.3   KJ/Kg-K

So enthalpy of steam at the exit of turbine

h= h_f+x(h_g- h_f)

Now by putting the values

h= 417.51+0.9(2675.1- 417.51) KJ/Kg

h=2449.34  KJ/Kg

Lets take m is the mass flow rate of steam

So 5\times 10^3=m\times (3374-2449.34)

m=5.4 Kg/s

So the mass flow rate of steam m=5.4 Kg/s

8 0
3 years ago
Which of these passages is an example of cohesive writing?
Oksana_A [137]
The answer mostly likely is: “1” due to the fact it is well ordered, and follows a similar thought process, best of luck!
3 0
3 years ago
Read 2 more answers
Other questions:
  • 9) A construction company employs 2 sales engineers. Engineer 1 does the work in estimating cost for 70% of jobs bid by the comp
    11·1 answer
  • The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and c
    6·1 answer
  • A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
    15·1 answer
  • Water flows through a nozzle at the end of a fire hose. If the nozzle exit velocity must be 20 m/s and the exit diameter is 40 m
    6·1 answer
  • Three consequences of unbalanced wheels on a motor vehicle​
    11·1 answer
  • Who is???????????????????
    13·1 answer
  • Air is compressed steadily from 100kPa and 20oC to 1MPa by an adiabatic compressor. If the mass flow rate of the air is 1kg/s an
    12·1 answer
  • Fig. 4 shows a simply-supported beam with supports A and B. The beam is subjected to three forces, 2000 N, 4000 N and 1500 N in
    5·1 answer
  • What parts do all circuits have in common?
    9·2 answers
  • Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!