Student Mark Processing – Python Lab Program

Simple program to get 5 different marks from the user and then calculates

  • total marks
  • percentage
  • grade based on the percentage

and prints them out.

stname=input("Enter the name of the Student:")
regno=int(input("Enter the Register Number:"))
m1=int(input("Enter the marks secured in Tamil:"))
m2=int(input("Enter the marks secured in English:"))
m3=int(input("Enter the marks secured in major 1:"))
m4=int(input("Enter the marks secured in major 2:"))
m5=int(input("Enter the marks secured in major 3:"))
total=m1+m2+m3+m4+m5
p=int((total/500)*100)
if (p>=80):
g="A Grade"
elif (p<80) & (p>=70):
g="B Grade"
elif (p<70)& (p>=60):
g="C Grade"
elif (p<60) & (p>=40):
g="D Grade"
elif (p<40):
g="E Grade"
print ("----------------------------------------------------");
print (" OUTPUT ");
print ("-----------------------------------------------------");
print (" STUDENT INFORMATION PROCESSING SYSTEM ");
print ("NAME REGISTER NUMBER TAMIL ENGLISH MAJOR1
 MAJOR2 MAJOR3 TOTAL PERCENTAGE GRADE")
print(stname," ",regno," ",m1," ",m2," ",m3," ",m4," ",m5,"
",total," ",p," ",g)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.