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
PilotLPTM [1.2K]
3 years ago
14

Write a program that reads in exam scores and displays the average score and the high score You should first ask the user how ma

ny exams there are. Your program must work for any number of exams. How many exams? 5 Enter a score: 74 Enter a score: 91 Enter a score: 87 Enter a score: 93 Enter a score: 82 The average is 86.8, the high score is 93
Computers and Technology
1 answer:
Furkat [3]3 years ago
5 0

Answer:

exams = []

quantity = int(input('How many exams? '))

for i in range(quantity):

 exams.append(float(input('Enter a score: ')))

print('Average score: ',sum(exams)/len(exams))

print('High score: ', max(exams))

Explanation:

Step 1 define variables

exams = []

Step 2 get the quantity of scores(user input)

quantity = int(input('How many exams? '))

Step 3 loop over the quantity of exams and input the score and save it in an array

for i in range(quantity):

 exams.append(float(input('Enter a score: ')))

Step 4 show the results

print('Average score: ',sum(exams)/len(exams))

print('High score: ', max(exams))

Functions used:

sum: get the summarize of the array

len: get the quantity of elements in an array

max: get the max value in an array

You might be interested in
I need help ASAP please and thank you!
hram777 [196]

Answer:

B) Sees failure as a way to get better.

Explanation:

Someone with a growth mindset sees failure as a way to get better. A growth mindset is one that typically do not see failure as a stunning block but rather as a way to get better and excel.

7 0
3 years ago
In what year was the earliest documented use of the word computer?.
topjm [15]

Answer:

1946

First, to deal with the more recent and most familiar meaning of the word ‘computer’: the word first came to mean an electronic device used to store and communicate information (and all of its subsequent functions) only in the 1940s: the earliest citation in the Oxford English Dictionary is from 1946. This is fitting.

Explanation:

7 0
2 years ago
In word, the ____ presents the most accurate view of how your document will look when printed, displaying the entire page on scr
makkiz [27]
<span>When using Microsoft Word, the "Print Preview" presents the most accurate view of how the document will look when it is printed. When using "Print Preview" the entire page is displayed on screen, making it easier to see what adjustments should be made to the page layout, such as spacing or text size.</span>
7 0
3 years ago
Habilidades de la alfabetizacion digital?
Eva8 [605]

Answer:

La American Library Association (ALA) define la alfabetización digital como "la capacidad de utilizar las tecnologías de la información y la comunicación para encontrar, evaluar, crear y comunicar información, lo que requiere habilidades cognitivas y técnicas".

6 0
3 years ago
Formatting changes only the appearance of data ___it does not affect the data itself.
Vladimir [108]

Answer:

The answer to this question is "true".

Explanation:

In this question, the answer is true because The use of formatting provides changes in the data presentation, not in the data. It is also known as layout.

The layout or formatting is important for two reasons that can be given as:  

1) It makes your data like a formatted data.

2) It helps to make your data more readable.

8 0
3 years ago
Other questions:
  • Which scientific law states that if a light source radiates isotropically, the light intensity falls off the further you get fro
    5·1 answer
  • The first documented use of work release was in the ____.
    13·1 answer
  • Difference between change management n asset management
    11·1 answer
  • Which of the following are not deducted on a typical pay stub
    12·1 answer
  • Select the characteristics that describe the evolution of computers that predate the personal computer (select all correct answe
    12·1 answer
  • Suppose that a computer can read or write a memory word in 5 nsec. Also suppose that when an interrupt occurs, all 32 CPU regist
    10·2 answers
  • Aaron is stating the main idea of what he read in his own words. He is _____.
    11·2 answers
  • Use the drop-down menus to complete statements about the two formats for importing contacts.
    11·2 answers
  • Where to store <br> ammunition
    5·1 answer
  • If your computer is frozen what is something you would do to troubleshoot the problem ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!