objective\nthis assignment will help you practice writing and using functions in python. you will organize…

objective\nthis assignment will help you practice writing and using functions in python. you will organize your program into multiple functions, return values, and print a final report.\n\ninstructions\n1. write a python program named: student_score_functions.py\n2. your program should:\n - ask the user to enter their name and age.\n - ask the user to enter three test scores.\n - use the following functions:\n (a) get_average(score1, score2, score3)\n - returns the average of the three scores.\n (b) is_passing(average)\n - returns \pass\ if the average is 60 or above, otherwise \not pass\.\n (c) print_report(name, age, average, status)\n - prints a formatted student report with all the information.\n3. the main section of your program should call these three functions in the correct order.

objective\nthis assignment will help you practice writing and using functions in python. you will organize your program into multiple functions, return values, and print a final report.\n\ninstructions\n1. write a python program named: student_score_functions.py\n2. your program should:\n - ask the user to enter their name and age.\n - ask the user to enter three test scores.\n - use the following functions:\n (a) get_average(score1, score2, score3)\n - returns the average of the three scores.\n (b) is_passing(average)\n - returns \pass\ if the average is 60 or above, otherwise \not pass\.\n (c) print_report(name, age, average, status)\n - prints a formatted student report with all the information.\n3. the main section of your program should call these three functions in the correct order.

Answer

Explanation:

Step1: Define the get_average function

def get_average(score1, score2, score3):
    return (score1 + score2 + score3) / 3

Step2: Define the is_passing function

def is_passing(average):
    if average >= 60:
        return "Pass"
    else:
        return "Fail"

Step3: Define the print_report function

def print_report(name, age, average, status):
    print(f"Name: {name}")
    print(f"Age: {age}")
    print(f"Average Score: {average}")
    print(f"Status: {status}")

Step4: Main section of the program

name = input("Please enter your name: ")
age = int(input("Please enter your age: "))
score1 = float(input("Please enter the first test score: "))
score2 = float(input("Please enter the second test score: "))
score3 = float(input("Please enter the third test score: "))

average = get_average(score1, score2, score3)
status = is_passing(average)
print_report(name, age, average, status)

Answer:

The above Python code meets the requirements of the assignment. It asks for user - input, calculates the average, determines the passing status and prints a report.