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
Consider the control volume form of the basic laws. For the conservation of mass form for a control volume with mass flow into a
aleksandrvk [35]

Answer:

C) Dependent on the mass flows in and out.

Explanation:

Lets take control volume(CV)

Take

          m_i =inlet mass flow rate

          m_e =exit mass flow rate

If we take unsteady flow process then inlet mass can not be equal to exit mass.Some mass can store if inlet mass flow rate is high and exit mass flow rate  is low.

So mass of control volume

    m_{cv}=m_i-m_e.

so above we can say that mass of control volume dependent on inlet and exit mass.

5 0
3 years ago
A wheel tractor is operating in it is fourth gear range with full rated revolution per minute. Tractors speed is 7.00 miles per
MatroZZZ [7]
The answer is please summarize
8 0
4 years ago
What is the function of a fixed resistor?
agasfer [191]

Answer:

  add resistance to a circuit

Explanation:

It depends on the design in which it is incorporated. A fixed resistor has many uses, including, but not limited to ...

  • dropping voltage
  • limiting current
  • contributing to a time delay
  • adjusting frequency response
  • eliminating (or creating) signal reflections
  • acting as a fuse
  • calibrating or trimming a response
  • providing protection against electrical shock or ESD
  • acting as a reference when measuring variable resistors
8 0
4 years ago
Cite another example of information technology companies pushing the boundaries of privacy issues; apologizing, and then pushing
Alexxx [7]

Answer:

Explanation:

Tech Social Media giant FB is one of those companies. Not long ago the ceo was brought to court to accusations that his company was selling user data. Turns out this is true and they are selling their users private data to companies all over the word. Once the news turned to something else, people focused on something new but the company still continues to sell it's users data the same as before. This is completely unethical as the information belongs to the user and they are not getting anything while the corporation is profiting.

7 0
3 years ago
A 179 ‑turn circular coil of radius 3.95 cm and negligible resistance is immersed in a uniform magnetic field that is perpendicu
suter [353]

Answer:

The energy, that is dissipated in the resistor during this time interval is 153.6 mJ

Explanation:

Given;

number of turns, N = 179

radius of the circular coil, r = 3.95 cm = 0.0395 m

resistance, R = 10.1 Ω

time, t = 0.163 s

magnetic field strength, B = 0.573 T

Induced emf is given as;

emf= N\frac{d \phi}{dt}

where;

ΔФ is change in magnetic flux

ΔФ  = BA = B x πr²

ΔФ  = 0.573 x π(0.0395)² = 0.002809 T.m²

emf = N\frac{d \phi}{dt} = 179(\frac{0.002809}{0.163} ) = 3.0848 \ V

According to ohm's law;

V = IR

I = V / R

I = 3.0848 / 10.1

I = 0.3054 A

Energy = I²Rt

Energy = (0.3054)² x 10.1 x 0.163

Energy = 0.1536 J

Energy = 153.6 mJ

Therefore, the energy, that is dissipated in the resistor during this time interval is 153.6 mJ

6 0
3 years ago
Other questions:
  • Where the velocity is highest in the radial direction? Why?
    9·1 answer
  • What is 220 C in degrees Fahrenheit (F)?
    10·1 answer
  • What is one of the “don’ts” in drawing dimension lines? they should never be labeled they should never be stacked they should ne
    10·2 answers
  • A 3-oz serving of roasted, skinless chicken breast contains 140 Cal, 27 g of protein, 3 g of fat, 13 mg of calcium, and 64 mg of
    7·1 answer
  • Communication "works" to the degree that a wide variety of information is completely and thoroughly shared among the parties, an
    13·1 answer
  • A cylindrical metal specimen having an original diameter of 11.34 mm and gauge length of 53.3 mm is pulled in tension until frac
    7·1 answer
  • La Patrulla Fronteriza de los Estados Unidos analiza la compra de un helicóptero nuevo para la vigilancia aérea de la frontera d
    14·1 answer
  • SRSS is a method used in responce spectram analysis
    9·1 answer
  • Which stages occur during incomplete metamorphosis?
    12·1 answer
  • It was determined by the forensic engineers that the historic collapse of the Minneapolis Interstate Bridge was due to
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!