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
Which band has an average of $3.58 per hour of parking?
Minchanka [31]
C it would be c because that has more and the others have less
6 0
2 years ago
As resistors are added in series to a circuit, the total resistance will
olganol [36]

The equivalent of the resistance connected in the series will be Req=R₁+R₂+R₃.

<h3>
What is resistance?</h3>

Resistance is the obstruction offered whenever the current is flowing through the circuit.

So the equivalent resistance is when three resistances are connected in series. When the resistances are connected in series then the voltage is different and the current remain same in each resistance.

V eq    =    V₁    +    V₂    +    V₃

IReq    =    IR₁    +    IR₂   +    IR₃

Req    =    R₁    +    R₂   +    R₃

Therefore the equivalent of the resistance connected in the series will be Req=R₁+R₂+R₃.

To know more about resistance follow

brainly.com/question/24858512

#SPJ4

8 0
2 years ago
What is CQ Thread Ball Valves​
hodyreva [135]
That is a thread ball valves

8 0
3 years ago
Read 2 more answers
2. What is the Function of the Camshaft in an Internal Combustion Engine?
mamaluj [8]

Answer:

camshaft, in internal-combustion engines, rotating shaft with attached disks of irregular shape (the cams), which actuate the intake and exhaust valves of the cylinders.

Explanation:

I'm taking an engineering/tech class. I hope this helps! :)

8 0
3 years ago
Who is web developer?????​<br>plez answer..
vredina [299]

Web developers design and create websites. They are responsible for the look of the site. They are also responsible for the site's technical aspects, such as its performance and capacity, which are measures of a website's speed and how much traffic the site can handle. In addition, web developers may create content for the site

8 0
3 years ago
Read 2 more answers
Other questions:
  • A production plant has a requirement for a counter that will count 4,000 items before recycling and starting over. How many D fl
    15·1 answer
  • What is 100 kPa in psia?
    11·1 answer
  • I need solution for this question please<br>Select the right answer ​
    8·2 answers
  • Air is compressed in the compressor of a turbojet engine. Air enters the compressor at 270 K and 58 kPa and exits the compressor
    13·1 answer
  • CNG is a readily available alternative to
    5·1 answer
  • The cross-section of a rough, rectangular, concrete() channel measures . The channel slope is 0.02ft/ft. Using the Darcy-Weisbac
    8·1 answer
  • Water at 310 K and a flow rate of 4 kg/s enters an alumina tube (k=177Wm K1) with an inner diameter of 0.20 m and a wall thickne
    13·1 answer
  • A car is about to start but it blows up. what is the problem with the car<br> ?
    6·2 answers
  • How do the remains of plants and animals become fossil fuels. Why are they considered nonrenewable resources?
    13·1 answer
  • 1)What are the three previous manufacturing revolutions Mr. Scalabre mentions? When did these take place?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!