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

You want to know your grade in Computer Science, so write a program that continuously takes grades between 0 and 100 to standard

input until you input "stop", at which point it should print your average to standard output. Instructor Notes: Make sure to initialize counter and total to 0 Read the grades between 0 and 100: grade = input() Use while loop as long as the grades input is not equal to "stop" Make sure to total int(grades) Increment counter by one input the grade again Finally, print the average: total/counter
Engineering
1 answer:
Margarita [4]3 years ago
5 0

Answer:

The code is given below in python

# Code Block 1

count = 0  # count variable

total = 0  # total variable

enter = '' # input variable

while enter != 'stop':

   enter = input('Enter a grade:' )

   if enter != 'stop' and enter.isdigit():

       total += int(enter) # add to total value

       count = count + 1   # then to the count

print float(total) / count

# Code Block 2

numbers = []

while enter != 'stop':

   enter = input('Enter a grade:' )

   if enter != 'stop':

       numbers.append(int(enter))

print sum(numbers) / float(len(numbers))

You might be interested in
Chemical materials that are transported are called..
svetlana [45]

Answer:

Transport Molecules

Explanation:

I believe the answer is transport molecules because development of a cell membrane that could allow some materials to pass.

3 0
3 years ago
A pulse-jet baghouse is desired for a finished cement plant. Calculate the number of bags required to filter 500 m3/min of air w
omeli [17]

Answer:

1) <em>4.41 * 10^-4 kw </em>

<em>2) </em>2.20 * 10^-4 kw

Explanation:

Given data:

Filter = 500 m^3/min

dust velocity = 3g/m^3

bag ; length = 3 m , diameter = 0.13 m

change in pressure = 1 kPa

efficiency = 60%

<u>1) Calculate the Fan power </u>

First :

Calculate the total dust loading = 3 * 500 = 1500 g

To determine the Fan power we will apply the relation

n_{o}  = \frac{\frac{p}{eg*Q*h} }{1000}    = \frac{\frac{p}{(3*10^{-3})* 981*( 500/60) *3  } }{1000}

<em>fan power ( </em>n_{0} )<em> = 4.41 * 10^-4 kw </em>

<u>2) calculate power drawn </u>

change in P = 6 atm = 6 * 10^5 pa

efficiency compressor = 50%

hence power drawn = 4.41 * 10^-4 kw  * 50% = 2.20 * 10^-4 kw

3 0
3 years ago
Velocity and temperature profiles for laminar flow in a tube of radius ro = 10 mm have the form: u(r) = 0.15[1 − (r/ro ) 2 ] T(r
antoniya [11.8K]

Answer:

Tm = 366.66k

Explanation:

check for the step by step explanation in the attachment

8 0
3 years ago
Carbon dioxide at a temperature of 0oC and a pressure of 600 kPa (abs) flows through a horizontal 40-mm- diameter pipe with an a
rusak2 [61]

Answer:

f = 0.04042

Explanation:

temperature = 0°C = 273k

p = 600 Kpa

d = 40 millemeter

e = 10 m

change in  P = 235 N/m²

μ = 2m/s

R = 188.9 Nm/kgk

we solve this using this formula;

P = ρcos*R*T

we put in the values into this equation

600x10³ = ρcos * 188.9 * 273

600000 = ρcos51569.7

ρcos = 600000/51569.7

=11.63

from here we find the head loss due to friction

Δp/pg = feμ²/2D

235/11.63 = f*10*4/2*40x10⁻³

20.21 = 40f/0.08

20.21*0.08 = 40f

1.6168 = 40f

divide through by 40

f = 0.04042

5 0
3 years ago
In the engineering design and prototyping process, what is the advantage of drawings and symbols over written descriptions?
MrMuchimi

The advantages that can be associated to

drawings and symbols over written descriptions in engineering design and prototyping process are;

Communicate design ideas as well as technical information to engineers.

Symbols and drawings can be universal which means it is easy to interpret any where by professionals.

  • An engineering drawing serves as complex dimensional object and symbol use by engineer to communicate.

  • Drawings and symbols makes it easier to communicate design ideas and technical information to engineers and and how the process will go.

Therefore, drawings and symbols is universal to all engineer unlike written one.

Learn more at:

brainly.com/question/20925313?referrer=searchResults

4 0
2 years ago
Other questions:
  • How an AK 47 gun was works​
    14·1 answer
  • Can anybody teach me how to make an app with flask and pygame together?​
    10·1 answer
  • Technician A says that the first step in diagnosing engine condition is to perform a thorough visual inspection. Technician B sa
    8·1 answer
  • Early American rockets used an RC circuit to set the time for the rocket to begin re-entry after launch (true story). Assume the
    5·1 answer
  • One kilogram of water contained in a piston–cylinder assembly, initially saturated vapor at 460 kPa, is condensed at constant pr
    15·1 answer
  • Ammonia in a piston–cylinder assembly undergoes two processes in series. At the initial state, p1 = 120 lbf/in.2 and the quality
    15·1 answer
  • What is the difference between digital instruments and decimal scaled instruments to measure
    6·1 answer
  • 2.44mW of incident 520 nm light is directed through a1 cm sample cuvette and 0.68 mW of Plight exits the sample what is the abso
    9·1 answer
  • Multiple Choice
    7·1 answer
  • Planetary gears require the armature to be offset via a gear housing that holds the starter drive.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!