"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Write a program for SSLC Mark Percentage Calculator

Write a program for SSLC Mark Percentage Calculator

Published on 2024-11-25
Browse:538

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
Release Statement This article is reproduced at: https://dev.to/lakshmi_prithanadesan_32/write-a-program-for-sslc-mark-percentage-calculator-4ha2?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3