Write a program to Define a method void marks() to input marks in English , commerce , accounts , economics and computer applications. print the marks obtained in all subjects , total marks and percentage ( assume that the maximum marks in each subject is 100).
Answers
Answered by
0
Answer:
def void_marks():
x=int(input("Marks of English="))
y=int(input("Marks of Commerce="))
z=int(input("Marks of Accounts="))
k=int(input("Marks of Economics="))
p=int(input("Marks of Computer Application="))
print("marks obtained in english=",x)
print("marks obtained in Commerc=",y)
print("marks obtained in Accounts=",z)
print("marks obtained in Economics=",k)
print("marks obtained in Computer Application=",p)
print("total marks=",x+y+z+k+p,"percentage=",(x+y+z+k+p)*(100/500))
void_marks()
Explanation:
Similar questions
Math,
2 months ago
History,
2 months ago
English,
2 months ago
Math,
4 months ago
Social Sciences,
9 months ago
Social Sciences,
9 months ago