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
The database cannot be migrated to a different engine because sql server features are used in the application’s net code. The co
Nezavi [6.7K]

Answer:

Explanation:

B is correct

3 0
2 years ago
Which term refers to the science that specifies the design and arrangement of items you use so you interact with the items effic
sashaice [31]

Answer:

the ergonomics To prevent a laptop from being stolen, you can use a surge protector. False; To prevent laptops from being stolen, you can use a cable lock. What is a digital certificate?

6 0
2 years ago
What web revolution enables user to generate content​
ch4aika [34]

Answer:

<u>web 2.0 internet</u>

<u>Explanation:</u>

<u>Explanation:</u>

Tim O Reilly in 2004 changed the web with his web 2.0 concept which according to him at the time would allow enable the user to generate content.​

4 0
4 years ago
If I wanted to repeat an action such as a heading for a paper, it would be helpful to _____. create a citation create a caption
salantis [7]
Um... Copy and paste
7 0
4 years ago
Read 2 more answers
If html is used to specify the content of the webpage, then what do you use css for?.
alekssr [168]

Answer:

css for styling.. means for making websites looks beautiful and attractive

Explanation:

html is like skeleton which defines websites structure whereas css is like cover to the skeleon.. css is responsible for fonts, colors, position of elements, responsiveness of websites.. it makes websites looks beautiful and prettier by adding background colors, hover effects, animation, etc

6 0
3 years ago
Other questions:
  • Dan needs to ensure that delegates as well as those looking at his shared calendar information are unable to see the details of
    7·1 answer
  • You can undo up to the most recent 40 actions by clicking the undo button.
    9·1 answer
  • 3. You arrive at an intersection with traffic lights that are not working because of a power outage. What do you do?
    9·1 answer
  • Which internet resource can you use to publicly describe an adventure trip you recently made?
    6·2 answers
  • What is the meaning of heart symbol in facebook?
    14·1 answer
  • How do you invite someone to a conversation on brainly
    14·1 answer
  • Software created according to user choice​ true or false
    5·1 answer
  • Is there actually a difference between left and right twix
    9·1 answer
  • (blank) is an expansion card that enables a computer to connect to a network:
    5·1 answer
  • ____ includes) all tools that capture, store, process, exchange, and use information.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!