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
Witch measuring tool would be used to determine the diameter of a crankshaft journal
djverab [1.8K]
Answer =

dial bore gauge

a “dial bore gauge” measures the inside of round holes, such as the bearing journals . can mesure up to 2” and 6” diameter holes .

when ( “ ) is next to a number it means inches fwi - but hope this helped have a good day :)
3 0
3 years ago
(a) In a 3-phase, 4-wire system, the currents are in the A, B, and C lines under abnormal conditions of loading were as follows:
Verizon [17]

Answer:

Check the attached image below

Explanation:

Kindly check the attached image below to get the step by step explanation to the question above.

5 0
3 years ago
What are the 5 major forest types?
Nataly [62]

Answer:

1. Equatorial Evergreen or Rainforest

2. Tropical forest

3. Mediterranean forest

4. Temperate broad-leaved forest

5. Warm temperate forest

Explanation:

4 0
4 years ago
Read 2 more answers
Verify if 83 is a term in the arithmetic sequence 11,15,19,23
EleoNora [17]

Answer:

yes, it is

Explanation:

The sequence: (+4)

23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83

Hope this helps! :)

3 0
3 years ago
Which type of modeling can create virtual designs that can save clients thousands of dollars?
swat32

Answer:

VR Prototyping

VR Prototyping Can Save you Thousands of Dollars.

Explanation:

there you go lad

8 0
3 years ago
Other questions:
  • How much work does the electric field do in moving a proton from a point with a potential of +V1 = +185 V to a point where it is
    15·1 answer
  • 5.5 A scraper with a 275 hp diesel engine will be used to excavate and haul earth for a highway project. An evaluation of the jo
    10·1 answer
  • An inventor claims to have developed a power cycle operating between hot and cold reservoirs at 1175 K and 295 K, respectively,
    9·1 answer
  • You are using a Geiger counter to measure the activity of a radioactive substance over the course of several minutes. If the rea
    8·1 answer
  • A ship tows a submerged cylinder, 1.5 m in diameter and 22 m long, at U = 5 m/s in fresh water at 20°C. Estimate the towing powe
    14·1 answer
  • 1. Which of the following is the ideal way to apply pressure onto pedals?
    14·2 answers
  • Assume a steel pipe of inner radius r1= 20 mm and outer radius r2= 25 mm, which is exposed to natural convection at h = 50 W/m2.
    12·1 answer
  • You must yield the right-of-way to all of the following EXCEPT:
    8·1 answer
  • your friend's parents are worried about going over their budget for th month. Which expense would you suggest is NOT a need?
    9·1 answer
  • During delivery of a 2023 ariya equipped with propilot assist 2. 0, what should you point out to your customers about the turn s
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!