3. Write python code to calculate Division, Percentage and total marks of 5 subjects of any
student, assume that maximum marks for each subject is 100. And division as per criteria
given below
Percentage
Division
>=60
first
<60 and >=45
second
<45 and >=33
third
<33
fail
Answers
Answered by
0
Answer:
ans.
Explanation:
1. Take in the marks of 5 subjects from the user and store it in different variables.
2. Find the average of the marks.
3. Use an else condition to decide the grade based on the average of the marks.
4. Exit.
Answered by
2
#python program
fm = 100
um = 0
s = []
for i in (5):
s.append(int(input(f"Enter {i} sub marks : ")))
for marks in s:
um = um + marks
p = (um*100)/500
print("division = ", end="")
if p => 60:
print(" first")
if p < 60 and p => 45:
print(" second")
else:
print(" fail")
Similar questions
Hindi,
1 month ago
Hindi,
1 month ago
Math,
4 months ago
Physics,
9 months ago
Computer Science,
9 months ago