Write a program to calculate a students result based on two examinations, 1 sports event, and 3 activities conducted. The weightage of activities= 30%, sports= 20% , and examinations= 50%.

 

Write a program to calculate a students result based on two examinations, 1 sports event, and 3 activities conducted. The weightage of activities= 30%, sports= 20% , and examinations= 50%.


PROGRAM:

a=float(input("Enter the mark of first subject(out of 100):"))
b=float(input("Enter the mark of second subject(out of 100):"))
c=float(input("Enter the performance mark of sport event(out of 50):"))
d=float(input("Enter the performance mark of first activity(out of 20):"))
e=float(input("Enter the performance mark of second activity(out of 20):"))
f=float(input("Enter the performance mark of third activity(out of 20):"))
exam=(a+b)*(50/200)
sport=c*(20/50)
activity=(d+e+f)*(30/60)
result=exam+sport+activity
print("******************RESULT************************************************************")
print("First subject mark:",a)
print("Second subject mark:",b)
print("Your performance in the sports:",c)
print("First activity mark:",d)
print("Second activity mark:",e)
print("Third activity mark:",f)
print("-------------------------------------------------------------------------------------")
print("Your result:",result)

OUTPUT:

No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.