Computer Science, asked by manvisalan1988, 17 hours ago

ALGORITHMS AND FLOW CHARTS
Input marks in three subjects. calculate average marks and then give division as per following conditions:
(a) write an algorithm for above problem
(b) draw a flowchart for the same.

Attachments:

Answers

Answered by samarthkrv
1

Answer:

print("Enter marks in all 3 subjects:")

tot = 0

for i in range(3):

   x = float(input())

   tot = tot + x

avg = tot/3

if(avg >= 60):

   print("Division I")

elif(avg >=50 and avg <= 60):

   print("Division II")

elif(avg >= 35 and avg <= 50):

   print("Division III")

else:

   print("Division 0")

Explanation:

Similar questions