About beginner python programming: - Make a function in Python called SIGA, which receives a tuple containing 4 pieces of information: the name of the student and his three respective grades. Your function should return a tuple, whose first element is the student's name, the second element is the grades average, and the third element is the student's situation, which must be represented by a string. If the average of the three grades of the student is greater than or equal to 7 (inclusive), the function should be return: (, ,’approved’, ’Congratulations!́). If the student's average grades is less than 7 but greater than or equal to 5, your function should return: (, ,’approved’). If the average is smaller than 5, the function should return (, ,’failed’). This function should return the average with one decimal place only.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 6PP
icon
Related questions
Question

About beginner python programming:

-

Make a function in Python called SIGA, which receives a tuple containing 4 pieces of information: the name
of the student and his three respective grades. Your function should return a tuple, whose first element is the student's name,
the second element is the grades average, and the third element is the student's situation, which must be represented
by a string. If the average of the three grades of the student is greater than or equal to 7 (inclusive), the function should be
return: (<name>, <average>,’approved’, ’Congratulations!́). If the student's average grades is less than 7 but
greater than or equal to 5, your function should return: (<name>, <average>,’approved’). If the average is smaller
than 5, the function should return (<name>, <media>,’failed’). This function should return the average
with one decimal place only.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Function
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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