Home >Backend Development >Python Tutorial >Write a program for SSLC Mark Percentage Calculator
SSLC Mark Percentage Calculator:
To calculate the total mark percentage, you can use the formula:
Percentage of marks = (Total marks earned/marks available) * 100
Here are the steps to calculate the total mark percentage:
-Add up the total points earned -Add up the total points possible -Divide the total points earned by the total points possible -Multiply the result by 100
Example:
468/500*100=93.6
print("Welcome to SSLC Marksheet") tamil=int(input("Tamil mark : ")) english=int(input("English mark : ")) maths=int(input("Maths mark : ")) science=int(input("Science mark : ")) social=int(input("Social mark : ")) result=tamil+english+maths+science+social print("Total Mark :", result) max_mark=[tamil,english,maths,science,social] percent=result/(len(max_mark)*100)*100 print("Percentage (%):",round(percent,2))
Output:
Welcome to SSLC Marksheet Tamil mark : 98 English mark : 88 Maths mark : 98 Science mark : 88 Social mark : 96 Total Mark : 468 Percentage (%): 93.6
The above is the detailed content of Write a program for SSLC Mark Percentage Calculator. For more information, please follow other related articles on the PHP Chinese website!