score card, score card-2, finding greatest

 # score card

# max=int(input("Enter the maximum marks of each subject:"))
# a= int(input("Enter the marks in English: "))
# b= int(input("Enter the marks in Science: "))
# c= int(input("Enter the marks in Math: "))
#
#
#
# total=a+b+c
# max_totaol=max*3
# print("Maximum Marks:", max_totaol)
#
# print("Total Marks of the student: ",total)
# p=(total*100)/max_totaol
# print("Percentage: ",p ,"%")
#
#
# cond1=(max*33)/100
# cond2=((max_totaol*40)/100)
#
# if(a<cond1 or b<cond1 or c<cond1):
# print("You have not score the minimum marks in one of the subject")
#
# elif(total>=cond2):
# print("congratulation!! You have passed the examination")
# else:
# print("sorry You have not passed the examination")






# score card-2


max=int(input("Enter the maximum marks of each subject:"))
a= int(input("Enter the marks in English: "))
b= int(input("Enter the marks in Science: "))
c= int(input("Enter the marks in Math: "))



total=a+b+c
max_totaol=max*3
print("Maximum Marks:", max_totaol)

print("Total Marks of the student: ",total)
p=(total*100)/max_totaol
print("Percentage: ",p,"%")


cond1=(max*33)/100
cond2=((max_totaol*40)/100)

if(a<cond1):
print("You have not score the minimum marks in Englsh*")
print("Sorry!!You have not cleared the Examination.")
elif(b<cond1):
print("YOu have not score the minimum marks in science*")
print("Sorry!!You have not cleared the Examination.")
elif(c<cond1):
print("you have not score the minimum marks in Math*")
print("Sorry!!You have not cleared the Examination.")

elif(total<cond2):
print("You have not score the minimum required total marks")
print("Sorry!!You have not cleared the Examination.")
else:
print("congratulation!! You have passed the Examination.")









# Write a program to find the greatest number entered by the user.

# if(a>b and a>c and a>d):
# print(a,"is greater")
# elif(b>a and b>c and b>d):
# print(b,"is greater")
# elif (c > a and c > b and c > d):
# print(c,"is greater")
# else:
# print(d,"is greater")
# if(a>b):
# f1=a
# else:
# f1=b
#
# if(c>d):
# f2=c
# else:
# f2=d
#
# if(f1>f2):
# print(f1, "is greatest")
# else:
# print(f2, "is greatest")



Comments