Write a program for SSLC Mark Percentage Calculator

Susan Sarandon
Release: 2024-11-23 11:46:13
Original
165 people have browsed it

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 
Copy after login

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))



Copy after login

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
Copy after login

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!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template