Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that computes the final grade for a student. Your program will p

ID: 3833832 • Letter: W

Question

Write a program that computes the final grade for a student. Your program will prompt the user for the following input: assignment grade, midterm grade, tutorial grade, and final exam grade. Each grade is a percentage between 0 and 100 and may contain decimals (e.g., 83.5). The final grade should be calculated using the following weights: To pass the course, the student must have a final grade of 60% or higher and have received at least 50% on the final exam. Your program must print out two statements indicating the final grade the student received and whether the student passed the course or not. Save your Python program in a file called a1q3.py and add it to your submission zip file.

Explanation / Answer

assignment = float(input("Assignment grade: "))
mid = float(input("Midterm grade: "))
tut = float(input("t u t o r i a l grade: "))
fin = float(input("final grade: "))

final_grade = assignment *.5 + mid*.15 + tut*.05 + fin*.30

if final_grade < 60 or fin < 50:
print("Fail!. Final grade: " + str(final_grade))
else:
print("Pass!. Final grade: " + str(final_grade))

# code link: https://paste.ee/p/l4K4c

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote