answer.
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
natima
3 months 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:
grin007 [323]3 months ago
5 0

Answer:

Below is the code provided in Python.

# Code Block 1

count = 0  # variable for counting

total = 0  # variable for total

enter = '' # variable for input

while enter!= 'stop':

   enter = input('Enter a grade:' )

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

       total += int(enter) # adding to the total amount

       count += 1   # then adding 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
. Were you able to observe ???? = 0 in the circuit you constructed during lab? Why or why not? Hint: What value of resistance wo
Mrrafil [318]

Answer:

An attachment follows below

Explanation:

1) The formula used for the damping coefficient in a series RLC circuit.

If \xi = 0, it is possible to set c = 0 but an inductor will still possess some capacitance.

2) The behaviors of critically damped and underdamped systems are illustrated along with comments on their temporal responses.

4) While several answers might suffice, the four I’ve highlighted are the crucial parameters necessary about an unknown op-amp before utilizing it in a circuit.

Hope this addresses all your inquiries.

5 0
3 months ago
6. You are evaluating flow through an airway. The current flow rate is 10 liters per minute with a fixed driving pressure (P1) o
iogann1982 [368]

Answer:

B) P1 would have to increase to sustain the flow rate (correct)

C) Resistance would rise (correct)

Explanation:

Flow rate is measured at 10 liters per minute

Driving pressure (P1) stands at 20 cm H2O

Fixed downstream pressure (P2) is 5 cm H2O

The accurate statements when the lumen is pinched in the center of the tube are: P1 will increase to maintain the flow rate, and resistance will rise. This occurs because pinching the lumen decreases its diameter, leading to higher resistance, which is linearly related to pressure, thus P1 will also increase.

The incorrect statement is: the flow would decrease.

6 0
2 months ago
A thin-film gold conductor for an integrated circuit in a satellite application is deposited from a vapor, and the deposited gol
mote1985 [299]

Answer:

Explanation:

The equilibrium vacancy concentration can be described by:

nv/N = exp(-ΔHv/KT),

where T is the temperature at which vacancies form,

K = Boltzmann's constant,

and ΔHv = enthalpy of vacancy formation.

Rearranging this equation to express temperature allows you to calculate it using the provided values. A detailed breakdown of the process is included in the attached file.

5 0
2 months ago
Which of the following types of protective equipment protects workers who are passing by from stray sparks or metal while anothe
choli [298]

Answer:

Flame-resistant clothing and aprons

Explanation:

Workers involved with welding are generally mandated to wear flame-resistant clothing and aprons to shield them from various hazards, including heat, flames, burns, and potential radiation. In the context of welding, this gear protects individuals from flying sparks that can ignite and cause fires. Hence, such clothing helps to prevent accidents in these situations.

7 0
3 months ago
1. Mark ‘N’ if a wrong type of units is used. Mark ‘Y’ otherwise. (1 point each)
pantera1 [306]

Response:

bsbsdbsd

Clarification:

7 0
3 months ago
Other questions:
  • Given two input integers for an arrowhead and arrow body, print a right-facing arrow. Ex: If the input is 0 1, the output is
    8·1 answer
  • As shown, a load of mass 10 kg is situated on a piston of diameter D1 = 140 mm. The piston rides on a reservoir of oil of depth
    9·1 answer
  • An overhead 25m-long, uninsulated industrial steam pipe of 100-mm diameter, is routed through a building whose walls and air are
    5·1 answer
  • A bankrupt chemical firm has been taken over by new management. On the property they found a 20,000-m3 brine pond containing 25,
    13·1 answer
  • You want to determine whether the race of the defendant has an impact on jury verdicts. You assign participants to watch a trial
    9·1 answer
  • A thin-walled tube with a diameter of 6 mm and length of 20 m is used to carry exhaust gas from a smoke stack to the laboratory
    7·1 answer
  • A 3-phase, 50 Hz, 110 KV overhead line has conductors placed in a horizontal plane 3 m apart. Conductor diameter is 2.5 cm. If t
    6·1 answer
  • 1. Consider a city of 10 square kilometers. A macro cellular system design divides the city up into square cells of 1 square kil
    10·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operated on 480 V. The maximum volt
    9·1 answer
  • In this exercise, we will examine how replacement policies affect miss rate. Assume a two-way set associative cache with four on
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!