Write and execute a Python program to read 10 students marks to process and produce different statistcal output. The program has to ask the user to input marks for 10 students and store them in a list. You can use the following marks as the input for your program. Inputs: 88, 51, 50, 90, 79, 84, 92, 65, 80, 72 You need to find the letter grade for each student's marks based on the conditions shown below. For calculating letter grade, define a programmer-defined function that takes mark as the parameter and return corresponding letter grade. Use the function that to calculate the letter grade for each student and store it in the new list. Mark 90 s mark 80 s mark < 90 60 s mark < 80 Grade A mark < 60 F Your program also has to process the students' marks and grade to find the following: a) Calculate average of all marks. b) Calculate number of students whose letter grade is "A". c) Calculate number of students with marks greater than average. d) Calculate number of students whose marks less than 55.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Program 2: students_result.py
Write and execute a Python program to read 10 students marks to process and produce different
statistcal output. The program has to ask the user to input marks for 10 students and store them
in a list. You can use the following marks as the input for your program.
Inputs:
88, 51,
50,
90,
79,
84,
92,
65,
80,
72
You need to find the letter grade for each student's marks based on the conditions shown below.
For calculating letter grade, define a programmer-defined function that takes mark as the
parameter and return corresponding letter grade. Use the function that to calculate the letter
grade for each student and store it in the new list.
Mark
Grade
90 s mark
80 s mark < 90
60 s mark < 80
A
B
C
mark < 60
F
Your program also has to process the students' marks and grade to find the following:
a) Calculate average of all marks.
b) Calculate number of students whose letter grade is "A".
c) Calculate number of students with marks greater than average.
d) Calculate number of students whose marks less than 55.
Include the following comments at the beginning of your code.
: <FILE NAME>
: <YOUR ID>
: <YOUR NAME>
# File Name
# Student Id
# Student Name
Display the output as follows:
Marks
Grade
88
B
51
F
50
90
A
79
84
92
65
80
72
Average Mark...
Number of students with grade "A".
Number of students with marks greater than average: 6
..: 75.1
..: 2
Number of students whose marks less than 55.......: 2
Transcribed Image Text:Program 2: students_result.py Write and execute a Python program to read 10 students marks to process and produce different statistcal output. The program has to ask the user to input marks for 10 students and store them in a list. You can use the following marks as the input for your program. Inputs: 88, 51, 50, 90, 79, 84, 92, 65, 80, 72 You need to find the letter grade for each student's marks based on the conditions shown below. For calculating letter grade, define a programmer-defined function that takes mark as the parameter and return corresponding letter grade. Use the function that to calculate the letter grade for each student and store it in the new list. Mark Grade 90 s mark 80 s mark < 90 60 s mark < 80 A B C mark < 60 F Your program also has to process the students' marks and grade to find the following: a) Calculate average of all marks. b) Calculate number of students whose letter grade is "A". c) Calculate number of students with marks greater than average. d) Calculate number of students whose marks less than 55. Include the following comments at the beginning of your code. : <FILE NAME> : <YOUR ID> : <YOUR NAME> # File Name # Student Id # Student Name Display the output as follows: Marks Grade 88 B 51 F 50 90 A 79 84 92 65 80 72 Average Mark... Number of students with grade "A". Number of students with marks greater than average: 6 ..: 75.1 ..: 2 Number of students whose marks less than 55.......: 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY