Computer Science, asked by rahultharun25, 1 month ago

Write a Python program to calculate the internal marks for student based on two Continuous assessments, one model exam and three assignments. To calculate the internal, 30 per cent of assignment, 20 per cent of model exam, and 50 per cent of Continuous assessment are considered as weightage

Answers

Answered by dreamrob
1

Program:

def Avg_Continuous_assessment(a, b):

   return ((a+b)/2)

def Avg_Assignment(a, b, c):

   return ((a+b+c)/3)

   

C1 = int(input("Enter marks in Continuous assessment 1 : "))

C2 = int(input("Enter marks in Continuous assessment 2 : "))

M = int(input("Enter marks in Model exam : "))

A1 = int(input("Enter marks in Assignment 1 : "))

A2 = int(input("Enter marks in Assignment 2 : "))

A3 = int(input("Enter marks in Assignment 3 : "))

Internal = Avg_Continuous_assessment(C1, C2)*50/100 + M*20/100 + Avg_Assignment(A1, A2, A3)*30/100

print("Internal = ", Internal)

Output:

Enter marks in Continuous assessment 1 : 80

Enter marks in Continuous assessment 2 : 70

Enter marks in Model exam : 78

Enter marks in Assignment 1 : 78

Enter marks in Assignment 2 : 70

Enter marks in Assignment 3 : 89

Internal =  76.8

Similar questions