Answer to Question #284196 in Python for ayush

Question #284196

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-02T02:20:27-0500
n = int(input('Enter Any Size of Class You Want: ')) 


intList = []
for i in range(1, n + 1):
    value = int(input("Enter Marks (0 - 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