SSLC 分數百分比計算器:
要計算總分百分比,您可以使用以下公式:
分數百分比 =(所得的總分/可用分數)* 100
以下是計算總分百分比的步驟:
-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
範例:
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))
輸出:
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
以上是編寫 SSLC 分數百分比計算器程序的詳細內容。更多資訊請關注PHP中文網其他相關文章!