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
Anika [276]
3 years ago
6

Write a Python program calculate summary statistics about a class assignment. First, prompt the user for the number scores to be

entered. Then prompt for each score, re prompting for values outside the range 0 - 100. Finally, display the minimum, maximum and average scores. There is no need to keep a list of scores, they you may do so if you wish. Use good, meaningful variable names.

Computers and Technology
1 answer:
In-s [12.5K]3 years ago
3 0

Answer:

see explaination

Explanation:

Code:

count = 0 num_of_sub = int(input("Enter a number of subjects : ")) marks_of_subjects = [] for i in range(num_of_sub): count = count + 1 while True: marks = int(input("Enter the marks for subject {} : ".format(count))) if marks < 0 or marks > 100: print("Marks are out of range: Try again") else: marks_of_subjects.append(marks) break Total = sum(marks_of_subjects) Min_marks = min(marks_of_subjects) Max_marks = max(marks_of_subjects) Average_marks = sum(marks_of_subjects)/len(marks_of_subjects) print("Total Marks in the exams are {} Marks".format(Total)) print("Minimum Score in the exam is {} Marks".format(Min_marks)) print("Maximum Score in the exam is {} Marks".format(Max_marks)) print("Average Score in the exam is {:.2f} Marks".format(Average_marks))

see attachment for the screenshot and output

You might be interested in
Which one is the correct answer
STatiana [176]

the right anwser is d


3 0
2 years ago
The Internet consists of interconnected computer networks throughout the world that everyone can use.
KiRa [710]
False, I'm pretty sure people in North Korea cant use it...
8 0
2 years ago
Read 2 more answers
In general, a unit test may need drivers and stubs, but not both.<br><br> TRUE OR FALSE
Ymorist [56]

Answer:

True

Explanation:

If a module or code is not ready then the unit test can use the Stubs to simulate a called upon function to test the process. On the other hand if the main unit is not ready the test can use Drivers to simulate the calling of said function to test the rest of the modules.

Therefore, a unit test will use either Drivers or Stubs at a given moment for testing but not both simultaneously.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

5 0
3 years ago
Aika has several labeled folders for different parts of his research. What is the MOST likely reason he does this? He wants to m
kobusy [5.1K]

Answer:

<u>He wants to easily and quickly find specific bits of research that cover certain topics.</u>

<u>Explanation:</u>

Remember, a research work typically has these 6 (six) components:

  • The Abstract.
  • Introduction
  • Methodology
  • Results
  • Discussion
  • References.

Thus, Aika's decision to label several folders for different parts of his research would make it easier and quicker for him to find specific bits of research that cover certain topics, instead of spending time looking for topics.

4 0
3 years ago
What is the importance of data validation, and how can user data entry errors be reduced or eliminated?
lisabon 2012 [21]

Incorrect data can lead to unexpected program execution results. Data entry errors can be reduced by only accepting valid input, e.g., if a number must be entered, alphabetic characters are ignored. After data validation, error messages can be prompted to the user, requiring him to enter the data again.

5 0
3 years ago
Other questions:
  • 1. Which of the following are considered CAD powerhouses?
    6·1 answer
  • Create a class named Person that holds the following fields: two String objects for the person’s first and last name and a Local
    5·2 answers
  • Off topic lol but does anyone know of a free app that lets you track family and friends like their location? Thx
    15·2 answers
  • Does a soda vending machine Give reciepts?<br><br>need for computer science hw
    7·2 answers
  • Which can be used to decode a Unicode character encoding into text?
    13·1 answer
  • REPORT THIS USER. HE'S SHOWING HIS YK WHAT TO EVERYONE INCLUDING ME. HIS ACCOUNT PROFILE IS IN THE PICTURE BELOW
    14·1 answer
  • Write a formula that would return a TRUE result if the sum of the first five numbers in a column of data are negative
    7·1 answer
  • Most presentation programs allow you to save presentations so they can be viewed online by saving them as ____
    5·2 answers
  • When network traffic is encrypted, it is invisible and its content and purpose are masked.
    12·1 answer
  • consider a pipelined risc cpu with 14 stages. what is maximum speedup of this cpu over a non-pipelined implementation?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!