Answer to Question #284542 in Python for dinesh

Question #284542

] Draw a flowchart and construct a python program to read the three subject’s marks secured by n students during FAT examination. If a student secured less than 50 in any subject, the student is failed in that subject. Count the number of students who failed in each subject and the total number of students who failed in at least one subject. [



1
Expert's answer
2022-01-03T14:25:14-0500
n = int(input('Enter the number of class: ')) 




intList = []
for i in range(1, n + 1):
    value = int(input("Enter the score from 0 to 100: "))
    intList.append(value)
    i = value
    pass_student = 0
    fail_student = 0
    if i >= 50:
        pass_student = pass_student + 1
    
    elif i < 50:
        fail_student = fail_student + 1
    
  
print('The Total Passed Student: ', pass_student)
print('The Total Failed Student: ', fail_student)






#Average




average = value / n
print('The Average is: ', average)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS