Write a python function that takes a list as a parameter. The list contains all the marks (Pop Quiz, Assignment, Assessment, Final) of a student. Then your function should return the total mark and the grade according to the provided conditions below. Then, finally print the returned values in the function call. If total score is greater than 100 or less than 0 then return “Invalid Marks” If total score is less than 50 then return “F” If total score is greater than or equal 50 and less than 65 then return “D” If total score is greater than or equal 65 and less than 80 then return “B” If total score is greater than or equal 80 and less than 101 then return “A”

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 22PE
icon
Related questions
Question

Write a python function that takes a list as a parameter. The list contains all the marks (Pop Quiz, Assignment, Assessment, Final) of a student. Then your function should return the total mark and the grade according to the provided conditions below. Then, finally print the returned values in the function call. If total score is greater than 100 or less than 0 then return “Invalid Marks” If total score is less than 50 then return “F” If total score is greater than or equal 50 and less than 65 then return “D” If total score is greater than or equal 65 and less than 80 then return “B” If total score is greater than or equal 80 and less than 101 then return “A”

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning