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
Copper is generally considered easy to weld because of its high thermal conductivity: (a) true or (b) false?
inn [45]

Answer:

b)False

Explanation:

Those material have high thermal it is very difficult to weld because due to high thermal conductivity it transmit the heat in to the surrounding and can not reach a particular temperature required to melt the material.And when material does not melt then there is no possibility to weld the material.

So from above we can say that it is very difficult to weld the copper material due to high thermal conductivity.Generally welding of copper done by usiong gas welding technique.

So our option b is right.

8 0
3 years ago
Write the definitions for engineering stress, true stress, engineering strain, and true strain for loading along a single axis.
shusha [124]

Answer and Explanation:

Engineering Stress of a material is defined as the applied load or force divided by the original cross sectional Area of the material.

σ(engineering) = F/(Ao)

True Stress is defined as the applied load or force divided by the actual cross-sectional area (the changing area with respect to time) of the material at that point in time. It's an instantaneous stress.

σ(true) = F/A

Engineering strain is a measure of how much a material deforms under a particular load. It is the amount of deformation in the direction of the applied force divided by the initial length of the material.

ε(engineering) = Δl/lo

True Strain measures instantaneous deformation. It is obtained mathematically by integrating strain over small time periods and summing them up. Hence,

ε(true) = In (lf/lo)

The calculations,

First step, 10m to 10.1m, Δl = 0.1m, lf = 10.1m, lo = 10m

ε(engineering) = 0.1/10 = 0.01

ε(true) = In (10.1/10) = 0.00995

Second step, 10.1m to 10.2m, Δl = 0.1m, lf = 10.2m, lo = 10.1m

ε(engineering) = 0.1/10.1 = 0.0099

ε(true) = In (10.2/10.1) = 0.00985

Overall, 10m to 10.2m, Δl = 0.2m, lf = 10.2m, lo = 10m

ε(engineering) = 0.2/10 = 0.02

ε(true) = In (10.2/10) = 0.0198

QED!

5 0
3 years ago
A storage tank, used in a fermentation process, is to be rotationally molded from polyethylene plastic. This tank will have a co
NNADVOKAT [17]

Answer:

The volume up to cylindrical portion is approx  32355 liters.

Explanation:

The tank is shown in the attached figure below

The volume of the whole tank is is sum of the following volumes

1) Hemisphere top

Volume of hemispherical top of radius 'r' is

V_{hem}=\frac{2}{3}\pi r^3

2) Cylindrical Middle section

Volume of cylindrical middle portion of radius 'r' and height 'h'

V_{cyl}=\pi r^2\cdot h

3) Conical bottom

Volume of conical bottom of radius'r' and angle \theta is

V_{cone}=\frac{1}{3}\pi r^3\times \frac{1}{tan(\frac{\theta }{2})}

Applying the given values we obtain the volume of the container up to cylinder is

V=\pi 1.5^2\times 4.0+\frac{1}{3}\times \frac{\pi 1.5^{3}}{tan30}=32.355m^{3}

Hence the capacity in liters is V=32.355\times 1000=32355Liters

3 0
4 years ago
A person who uses different programming languages to develop a program is called?
marysya [2.9K]

Answer:

A computer programmer, sometimes called a software developer, a programmer or more recently a coder (especially in more informal contexts), is a person who creates computer software.

3 0
3 years ago
Which dimension of wellness focuses on finding enjoyment and satisfaction in daily endeavours?
UNO [17]

Answer:

I believe its emotional because it says satisfaction and most of the time that has to deal with emotions running through the body.

Explanation:

5 0
3 years ago
Other questions:
  • What are some basic research topics for writing a research paper for first-year software students?
    15·2 answers
  • How is an electric generator like an electric motor in reverse?
    13·1 answer
  • The Energy Losses Associated with Valves and Fittings: a)- are generally associated with a K factor b)- are generally associated
    10·1 answer
  • g a heat engine is located between thermal reservoirs at 400k and 1600k. the heat engine operates with an efficiency that is 70%
    11·1 answer
  • An ideal Carnot engine extracts of heat from a high-temperature reservoir at 1200 during each cycle, and rejects heat to a low-t
    10·1 answer
  • Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
    13·1 answer
  • A planes leaves Arcra ab 10:40pm and arrives in Germany at 07:32 the
    8·1 answer
  • Barries of effective <br> communication?
    15·1 answer
  • Answer my question I will mark brainliest
    13·2 answers
  • FOR DARKEND1<br><br>÷<br><br><br>try copy and paste​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!