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
algol [13]
3 years ago
5

Using Python, have your program do the following, using loops (no recursion)

Engineering
1 answer:
Anit [1.1K]3 years ago
3 0

Answer:

Explanation:

# taking first number

low = int(input("Enter a number: "))

# if that is valid

if low >= 0:

 

# considering it as high, sum and input

high = low

sum = low

count = 1

inp = low

 

# breaking if negative number is entered

while True:

 

# taking user input of numbers

inp = int(input("Enter a number: "))

 

if inp >= 0:

 

# adding it to sum

sum = sum + inp

 

# checking for low

if low > inp:

low = inp

 

# checking for high

if high < inp:

high = inp

 

# tracking count

count = count + 1

else:

break

 

# printing output

print("\nSum =",sum)

print("count =",count)

print("Average =",round(sum/float(count),2))

print("Lowest =",low)

print("Highest =",high)

 

# no valid numbers

else:

print("no valid numbers entered")

You might be interested in
A 450 MWt combined cycle plant has a Brayton cycle efficiency of 24% and a Rankine cycle efficiency of 29% with no heat augmenta
Romashka-Z-Leto [24]

Answer:

Output of plant=207.18 MW

Explanation:

Given input energy Q=450 MW

Brayton cycle efficiency\eta_1=24%

Rankine cycle efficiency \eta_2=29%

Combined efficiency for two cycle given as follow

\eta _b=\eta _1+\eta _2-\eta _1\eta _2

\eta _b=0.24+0.29-0.24\times 0.29

\eta_b=0.4604

We know that efficiency \eta =\dfrac{out\ put}{in\ put}

out put of plant=450\times 0.4604

So output of plant=207.18 MW

4 0
3 years ago
How do we need to prepare for the future?
Paraphin [41]
B. to achieve sustainable development
5 0
3 years ago
For a fluid with a Prandtl Number of 1000.0, the hydrodynamic layer is thinner than the thermal boundary layers. a) True b) Fals
kvv77 [185]

Answer:

(b)False

Explanation:

Given:

 Prandtl number(Pr) =1000.

We know that   Pr=\dfrac{\nu }{\alpha }

  Where \nu is the molecular diffusivity of momentum

             \alpha is the molecular diffusivity of heat.

 Prandtl number(Pr) can also be defined as

    Pr=\left (\dfrac{\delta }{\delta _t}\right )^3

Where \delta is the hydrodynamic boundary layer thickness and \delta_t is the thermal boundary layer thickness.

So if Pr>1 then hydrodynamic boundary layer thickness will be greater than thermal boundary layer thickness.

In given question Pr>1 so  hydrodynamic boundary layer thickness will be greater than thermal boundary layer thickness.

So hydrodynamic layer will be thicker than the thermal boundary layer.

8 0
3 years ago
Q.14
Kay [80]

Answer:

A. optical isolation

Explanation:

well I can't really give a good explanation because I also saw the same question in my exams and option A was the correct answer

6 0
3 years ago
What is heat unit?in X ray machine​
Karo-lina-s [1.5K]

Answer:

joule

Explanation:

heat is express in joules in x Ray equipment

6 0
3 years ago
Other questions:
  • Explain the advantages of continuous insulation in envelope assemblies and why it is better to have the continuous insulation on
    12·1 answer
  • The ____________ signal from the robot controller instructs the robot to do something.
    10·1 answer
  • A room is cooled by circulating chilled water through a heat exchanger located in the room. The air is circulated through the he
    15·1 answer
  • A plane wall of length L, constant thermal conductivity k and no thermal energy generation undergoes one-dimensional, steady-sta
    14·1 answer
  • (1) Estimate the specific volume in cm3 /g for carbon dioxide at 310 K and (a) 8 bar (b) 75 bar by the virial equation and compa
    10·1 answer
  • A student lives in an apartment with a floor area of 60 m2 and ceiling height of 1.8 m. The apartment has a fresh (outdoor) air
    14·1 answer
  • An apple, potato, and onion all taste the same if you eat them with your nose plugged
    8·2 answers
  • Multiple Select
    12·1 answer
  • What is the optimal temperature for recharging a battery?
    14·1 answer
  • Why is it important to follow properly the different steps in painting and varnishing a product ?​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!