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
WILL GIVE BRAILIST IF ANSWER RIGHT
Vesna [10]

Answer:

See Photo For Matching.

4 0
3 years ago
Jacob would like to include an arrow in his newsletter to point to some important information. He should _____.
qwelly [4]

Some people either add a shape as I do. But for this particular question it would be, either add word art or create a list with bullets. I would rather do word art or insert shape because that means you do not have to get the single bullet.


I really do hope this helped you. I hope you have a great day. And if I am incorrect I apologize.

3 0
3 years ago
Read 2 more answers
Which data type or collection of data types can SOQL statements populate or evaluate to?
Artyom0805 [142]

Answer:

The answer is "Option A, Option B, and Option D".

Explanation:

"Salesforce Object Query Language" is a SOQL. It is used to scan for specific information in your company's salesforce records. A single object, an integer and several data types of objects are used in this declaration and other options wrong that can be described as follows:

  • In option C, It is wrong because in archiving it is not to help to classify data completely.
  • In option E, boolean data type is used for given only true or false value that's why it is not correct.
5 0
3 years ago
The processes of only seeing only some records frome data table is called as what​
Aliun [14]

Explanation:

For other uses, see Table. An example table rendered in a web browser using HTML. A table is an arrangement of data in rows and columns, or possibly in a more ... The first row is not . is called Html

5 0
3 years ago
Given a following C program, where M and N are constant declared with #define long P[M][N]; long Q[N][M]; long sum_element(long
sladkih [1.3K]

Answer:

Check the explanation

Explanation:

The first, second and third instruction together set %rdx = 3*%rdi + %rsi. The fourth and fifth instruction set %rdi = %rdi+9*%rsi.

Now %rdi is used to address Q, while %rdx is used to address P. Note that P is addressed by column and then by row. Hence M = 3 . Also Q is addressed by row and then column, hence N = 9 .

3 0
4 years ago
Other questions:
  • If we have an economy that operates with a minimum of government interference, why are there so many laws on the books about emp
    7·2 answers
  • In one to two sentences, explain why citizens pay taxes
    8·1 answer
  • To get a GIMP file into a different format, you need to
    7·1 answer
  • What does the action tool allow you to do in Microsoft Powerpoint?
    15·1 answer
  • (Game Design) Creating and manipulating data structures is one of the primary functions of a development environment.
    12·2 answers
  • In which step of web design is storyboarding helpful?
    10·1 answer
  • What are real online jobs any one of any age can get pays weekly by Pay<br> Pal
    8·1 answer
  • Brainly keeps deleting my questions and I don’t know why It says I violated the rules but I didn’t. pls help
    5·1 answer
  • How dose computers it use the information to solve problems
    6·1 answer
  • I hs no life hahahaha
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!