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
What happens to the duty cycle for a GMAW Gun when 75Ar/25COzgas
skad [1K]

So what happens is the host will not kill the y no se que hacer para no one can see it in

6 0
2 years ago
According to the
zysi [14]

Answer:

The part of the system that is considered the resistance force is;

B

Explanation:

The simple machine is a system of pulley  that has two pulleys

The effort, which is the input force at A gives the value of the tension at C and  D which are used to lift the load B

Therefore, we have;

A = C = D

B = C + D = C + C = 2·C

∴ C = B/2

We have;

C = B/2 = A

Therefore, with the pulley only a force, A equivalent to half the weight, B, of the load is required to lift the load, B

The resistance force is the constant force in the system that that requires an input force to overcome in order for work to be done

It is the force acting to oppose the sum of the other forces system, such as a force acting in opposition to an input force

Therefore, the resistance force is the load force, B, for which the input force, A, is required in order for the load to be lifted.

3 0
3 years ago
What should you release to re-establish vehicle control and tire traction?
MrMuchimi

Answer: The accelerator and the brakes.

6 0
2 years ago
A drilling operation is performed on a steel part using a 12.7 mm diameter twist drill with a point angle of 118 degrees. The ho
Masteriza [31]

Answer:

a. Rotational speed of the drill  = 375.96 rev/min

b. Feed rate  = 75 mm/min

c. Approach allowance  = 3.815 mm

d. Cutting time  = 0.67 minutes

e. Metal removal rate after the drill bit reaches full diameter. = 9525 mm³/min

Explanation:

Here we have

a. N = v/(πD) = 15/(0.0127·π) = 375.96 rev/min

b. Feed rate = fr = Nf = 375.96 × 0.2 = 75 mm/min

c. Approach allowance = tan 118/2 = (12.7/2)/tan 118/2 = 3.815 mm

d. Approach allowance T∞ =L/fr = 50/75 = 0.67 minutes

e. R = 0.25πD²fr = 9525 mm³/min.

7 0
3 years ago
Which of the following is a variable expense for many adults?
sertanlavr [38]
But where are the options?
7 0
2 years ago
Read 2 more answers
Other questions:
  • Consider a very long, slender rod. One end of the rod is attached to a base surface maintained at Tb, while the surface of the r
    8·1 answer
  • why HF (hydrogen fluoride) has higher boiling temperature than HCl (hydrogen chloride), even thought HF has lower molecular weig
    8·1 answer
  • The amount of time an activity can be delayed and yet not delay the project is termed:_________
    14·1 answer
  • You talk with the owner and he likes the idea of using two large glulam beams as shown to carry the joist loads. Design the glul
    5·1 answer
  • The following laboratory test results for Atterberg limits and sieve-analysis were obtained for an inorganic soil. [6 points] Si
    14·1 answer
  • Merchandise without an expiration date like electronics, tools and home goods typically have a longer
    15·1 answer
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
  • EverFi future smart pie chart
    11·1 answer
  • Whats the purpose of the keyway
    13·1 answer
  • Kaya just bought a house and realizes that the chimney needs to be totally torn down and rebuilt. She needs to call an expert si
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!